Bug #2688
closed[PATCH] LightyTest.pm: do not shutdown on darwin
Description
While shutting down the sending side of a socket after having
sent the last of the data should not interfere with any future
reception of new data on the same socket, on darwin it does.
If the socket is shutdown for sending, it will fail to receive
any future data from the other end as well unless it already
just happens to be in the receive buffer waiting to be read.
Prevent this problem by skipping the socket shutdown on the
darwin platform which allows the tests to run to normal
completion and pass.
It's unclear whether or not this problem is limited only to
Perl or is system wide.
Patch file attached.
See also http://repo.or.cz/lighttpd/svnmirror/patches.git/commitdiff/97313367
Files
Updated by stbuehler about 9 years ago
- Target version changed from 1.4.x to 1.4.38
Hm, I think we probably shouldn't send close on any platform (as that usually is taken as a "I don't need the response anymore" signal by the webserver) before we finished reading the response. I'll try to get this one in for 1.4.38.
Updated by stbuehler about 9 years ago
- Status changed from New to Fixed
- % Done changed from 0 to 100
Applied in changeset r3058.
Updated by gstrauss over 8 years ago
- Related to Bug #2743: 1.4.40/41 mod_proxy, mod_scgi may trigger POLLHUP on *BSD,Darwin added
Updated by gstrauss over 8 years ago
It's unclear whether or not this problem is limited only to Perl or is system wide.
It appears to be a problem on Darwin and likely also *BSDs. See #2743
Also available in: Atom