]> granicus.if.org Git - curl/commit
transfer: return without select when the read loop reached maxcount
authorDaniel Stenberg <daniel@haxx.se>
Mon, 1 Aug 2016 22:48:23 +0000 (00:48 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 3 Aug 2016 22:23:27 +0000 (00:23 +0200)
commit6eb60c2dc589a15ff8a3aa5961745d86044a9b78
tree8d0df4b11585a8b02b60e9e2d042158461c3fa53
parent497e7c9d3460566712b3cd81b272cde7826f264c
transfer: return without select when the read loop reached maxcount

Regression added in 790d6de48515. The was then added to avoid one
particular transfer to starve out others. But when aborting due to
reading the maxcount, the connection must be marked to be read from
again without first doing a select as for some protocols (like SFTP/SCP)
the data may already have been read off the socket.

Reported-by: Dan Donahue
Bug: https://curl.haxx.se/mail/lib-2016-07/0057.html
lib/multi.c
lib/transfer.c
lib/transfer.h