Support writing large chunks of data over tls on windows

This commit is contained in:
Richard Frith-Macdonald 2021-05-15 16:10:23 +01:00
parent 782e7aed31
commit ed9bb899a7
3 changed files with 11 additions and 2 deletions

View file

@ -1,3 +1,12 @@
2021-05-15 Richard Frith-Macdonald <rfm@gnu.org>
* Source/GSFileHandle.m:
* Source/win32/GSFileHandle.m:
When we receive an event telling us the handle is writable, repeatedly
write until either all the data we have is written or until the write
attempt doesn't write anything. On mswindows this copes with the case
of the gnutls write only writing 16KB chunks at a time.
2021-05-05 Richard Frith-Macdonald <rfm@gnu.org>
* configure.ac: Check for declaration of CURLOPT_MAXAGE_CONN

View file

@ -2264,7 +2264,7 @@ NSString * const GSSOCKSRecvAddr = @"GSSOCKSRecvAddr";
item = [info objectForKey: NSFileHandleNotificationDataItem];
length = [item length];
ptr = [item bytes];
if (writePos < length)
while (writePos < length)
{
int written;

View file

@ -2220,7 +2220,7 @@ NSString * const GSSOCKSRecvAddr = @"GSSOCKSRecvAddr";
item = [info objectForKey: NSFileHandleNotificationDataItem];
length = [item length];
ptr = [item bytes];
if (writePos < length)
while (writePos < length)
{
int written;