summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-07-20 00:57:28 +0200
committerDaniel Stenberg <daniel@haxx.se>2018-07-20 00:57:28 +0200
commit286e2da4c55ff732e72225c58e28534f79011d9a (patch)
treeb95c4441d83cf0a1daecc7a524e7d045a2d5c1e2
parenta248e62d979b9ea224d451e4c1f01d9b315e2649 (diff)
downloadcurl-286e2da4c55ff732e72225c58e28534f79011d9a.tar.gz
smb_getsock: wait for write socket too always
... the protocol is doing read/write a lot, so it needs to write often even when downloading. A more proper fix could check for eactly when it wants to write and only ask for it then.
-rw-r--r--lib/smb.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/smb.c b/lib/smb.c
index fad636252..91b32e9b3 100644
--- a/lib/smb.c
+++ b/lib/smb.c
@@ -947,11 +947,7 @@ static int smb_getsock(struct connectdata *conn, curl_socket_t *socks,
return GETSOCK_BLANK;
socks[0] = conn->sock[FIRSTSOCKET];
-
- if(smbc->send_size || smbc->upload_size)
- return GETSOCK_WRITESOCK(0);
-
- return GETSOCK_READSOCK(0);
+ return GETSOCK_READSOCK(0) | GETSOCK_WRITESOCK(0);
}
static CURLcode smb_parse_url_path(struct connectdata *conn)