darwinssl: Fix send glitchiness with data > 32 or so KB
authorNick Zitzmann <nickzman@gmail.com>
Tue, 12 Feb 2013 20:02:36 +0000 (13:02 -0700)
committerNick Zitzmann <nickzman@gmail.com>
Tue, 12 Feb 2013 20:02:36 +0000 (13:02 -0700)
commit66aa9bf52d3ea56d7c5dea8c4c6a2e27f0c8db21
tree2597eeb0a4cec42608d476190d54bfd32775f395
parentbd93062ee52edec4869416ab8306032658010900
darwinssl: Fix send glitchiness with data > 32 or so KB

An ambiguity in the SSLWrite() documentation lead to a bad inference in the
code where we assumed SSLWrite() returned the amount of bytes written to
the socket, when that is not actually true; it returns the amount of data
that is buffered for writing to the socket if it returns errSSLWouldBlock.
Now darwinssl_send() returns CURLE_AGAIN if data is buffered but not written.

Reference URL: http://curl.haxx.se/mail/lib-2013-02/0145.html
lib/curl_darwinssl.c
lib/urldata.h