diff options
author | Daniel Stenberg <daniel@haxx.se> | 2018-07-20 00:57:28 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-07-20 00:57:28 +0200 |
commit | 286e2da4c55ff732e72225c58e28534f79011d9a (patch) | |
tree | b95c4441d83cf0a1daecc7a524e7d045a2d5c1e2 | |
parent | a248e62d979b9ea224d451e4c1f01d9b315e2649 (diff) | |
download | curl-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.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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) |