darwinssl: Fix bug where packets were sometimes transmitted twice
authorNick Zitzmann <nick@chronosnet.com>
Tue, 29 Jan 2013 02:34:35 +0000 (19:34 -0700)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 29 Jan 2013 08:05:59 +0000 (09:05 +0100)
commit163a1dca5fc708f99db9e6a67d368e29f90e345e
tree3ce23dd5b8eae88424d39d8caaa1eae33245575e
parent23a47ef01b22a1eb3e6a1005631f76a4f93d89f5
darwinssl: Fix bug where packets were sometimes transmitted twice

There was a bug where, if SSLWrite() returned errSSLWouldBlock but did
succeed in transmitting at least something, then we'd incorrectly
resend the packet. Now we never take errSSLWouldBlock as a sign that
nothing was transferred to/from the server.

Bug: http://curl.haxx.se/mail/lib-2013-01/0295.html
Reported by: Bruno de Carvalho
lib/curl_darwinssl.c