diff options
| author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-04-11 13:51:50 +0000 |
|---|---|---|
| committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-04-11 13:51:50 +0000 |
| commit | e7f8a3292949287d27abba78eb4f9db9ecc31527 (patch) | |
| tree | afdc591d1a9d49742317832f53bc5b2f04fa5bd3 | |
| parent | cc295fb2614fac59335e41256814e3f857dbda02 (diff) | |
| download | busybox-w32-e7f8a3292949287d27abba78eb4f9db9ecc31527.tar.gz busybox-w32-e7f8a3292949287d27abba78eb4f9db9ecc31527.tar.bz2 busybox-w32-e7f8a3292949287d27abba78eb4f9db9ecc31527.zip | |
- httpd in inetd mode: POST from IE (6) ends up in 'cannot display page'
Closes #827
| -rw-r--r-- | networking/httpd.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/networking/httpd.c b/networking/httpd.c index 6e80fd9be..c89073a2a 100644 --- a/networking/httpd.c +++ b/networking/httpd.c | |||
| @@ -1602,11 +1602,9 @@ static void handleIncoming(void) | |||
| 1602 | char *cookie = 0; | 1602 | char *cookie = 0; |
| 1603 | char *content_type = 0; | 1603 | char *content_type = 0; |
| 1604 | #endif | 1604 | #endif |
| 1605 | #ifndef CONFIG_FEATURE_HTTPD_USAGE_FROM_INETD_ONLY | ||
| 1606 | fd_set s_fd; | 1605 | fd_set s_fd; |
| 1607 | struct timeval tv; | 1606 | struct timeval tv; |
| 1608 | int retval; | 1607 | int retval; |
| 1609 | #endif | ||
| 1610 | struct sigaction sa; | 1608 | struct sigaction sa; |
| 1611 | 1609 | ||
| 1612 | #ifdef CONFIG_FEATURE_HTTPD_BASIC_AUTH | 1610 | #ifdef CONFIG_FEATURE_HTTPD_BASIC_AUTH |
| @@ -1852,19 +1850,21 @@ FORBIDDEN: /* protect listing /cgi-bin */ | |||
| 1852 | free(config->remoteuser); | 1850 | free(config->remoteuser); |
| 1853 | #endif | 1851 | #endif |
| 1854 | # endif | 1852 | # endif |
| 1853 | #endif /* CONFIG_FEATURE_HTTPD_USAGE_FROM_INETD_ONLY */ | ||
| 1855 | shutdown(a_c_w, SHUT_WR); | 1854 | shutdown(a_c_w, SHUT_WR); |
| 1856 | 1855 | ||
| 1857 | /* Properly wait for remote to closed */ | 1856 | /* Properly wait for remote to closed */ |
| 1858 | FD_ZERO (&s_fd) ; | 1857 | FD_ZERO (&s_fd) ; |
| 1859 | FD_SET (a_c_w, &s_fd) ; | 1858 | FD_SET (a_c_r, &s_fd) ; |
| 1860 | 1859 | ||
| 1861 | do { | 1860 | do { |
| 1862 | tv.tv_sec = 2 ; | 1861 | tv.tv_sec = 2 ; |
| 1863 | tv.tv_usec = 0 ; | 1862 | tv.tv_usec = 0 ; |
| 1864 | retval = select (a_c_w + 1, &s_fd, NULL, NULL, &tv); | 1863 | retval = select (a_c_r + 1, &s_fd, NULL, NULL, &tv); |
| 1865 | } while (retval > 0 && (read (a_c_w, buf, sizeof (config->buf)) > 0)); | 1864 | } while (retval > 0 && (read (a_c_r, buf, sizeof (config->buf)) > 0)); |
| 1866 | 1865 | ||
| 1867 | shutdown(a_c_r, SHUT_RD); | 1866 | shutdown(a_c_r, SHUT_RD); |
| 1867 | #ifndef CONFIG_FEATURE_HTTPD_USAGE_FROM_INETD_ONLY | ||
| 1868 | close(config->accepted_socket); | 1868 | close(config->accepted_socket); |
| 1869 | #endif /* CONFIG_FEATURE_HTTPD_USAGE_FROM_INETD_ONLY */ | 1869 | #endif /* CONFIG_FEATURE_HTTPD_USAGE_FROM_INETD_ONLY */ |
| 1870 | } | 1870 | } |
