darwinssl: fix infinite loop if server disconnected abruptly
authorNick Zitzmann <nickzman@gmail.com>
Mon, 4 Mar 2013 05:11:10 +0000 (22:11 -0700)
committerNick Zitzmann <nickzman@gmail.com>
Mon, 4 Mar 2013 05:11:10 +0000 (22:11 -0700)
commitfadf33c78ac7bdfc6790350de9a0dfc8bcdb030b
treee88e40f154f742ed1740ff1e7d4df2732a725138
parent298f806d01fa49d6b62fd3de591a2cb33f7d725b
darwinssl: fix infinite loop if server disconnected abruptly

If the server hung up the connection without sending a closure alert,
then we'd keep probing the socket for data even though it's dead. Now
we're ready for this situation.

Bug: http://curl.haxx.se/mail/lib-2013-03/0014.html
Reported by: Aki Koskinen
lib/curl_darwinssl.c