[PATCH] LightyTest.pm: do not shutdown on darwin
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.
Updated by stbuehler about 4 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.
Also available in: Atom