-
-
Notifications
You must be signed in to change notification settings - Fork 7k
speedcheck: do not trigger low speed cancelation on transfers paused with CURL_READFUNC_PAUSE #19653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…with CURL_READFUNC_PAUSE When a trasfer is paused from a read callback with a CURL_READFUNC_PAUSE code, it should be excluded from the speedcheck. Currently only transfers paused from write callbacks are excluded, because the code only checks for "recv direction" of the transfer. This commit adds a check for "send direction". Issue similar to curl#6358
This comment was marked as resolved.
This comment was marked as resolved.
|
@bttrfl thanks, I think this is good. Could you rebase on master? I think the CI failures should be fixed that way. |
|
If you do not have the time, I can take this change in to #19384 where I work on rate limits improvements. |
icing
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bagder let's merge this now. the failures are all the known wolfssl fallout.
|
Thanks! |
|
Thanks! |
Некорректно работает ограничение CURLOPT\_LOW\_SPEED\_LIMIT для приостановленных через CURL\_READFUNC\_PAUSE (или curl\_pause, тут неважно) upload'ов. По документации, для таких запросов проверка не должна срабатывать, а на практике это не так: запрос ставится на паузу и потом отваливается по лимиту. Нас сейчас эта проблема блокирует: пятисотим на медленных s3 клиентах, поэтому пока ждем мержа [PR](curl/curl#19653) в апстрим и релиза, занес патч сюда В тикете чуть больше подробностей commit_hash:3fe9cfbc23430dd59643f0915943455caad3db97
Некорректно работает ограничение CURLOPT\_LOW\_SPEED\_LIMIT для приостановленных через CURL\_READFUNC\_PAUSE (или curl\_pause, тут неважно) upload'ов. По документации, для таких запросов проверка не должна срабатывать, а на практике это не так: запрос ставится на паузу и потом отваливается по лимиту. Нас сейчас эта проблема блокирует: пятисотим на медленных s3 клиентах, поэтому пока ждем мержа [PR](curl/curl#19653) в апстрим и релиза, занес патч сюда В тикете чуть больше подробностей commit_hash:3fe9cfbc23430dd59643f0915943455caad3db97
Некорректно работает ограничение CURLOPT\_LOW\_SPEED\_LIMIT для приостановленных через CURL\_READFUNC\_PAUSE (или curl\_pause, тут неважно) upload'ов. По документации, для таких запросов проверка не должна срабатывать, а на практике это не так: запрос ставится на паузу и потом отваливается по лимиту. Нас сейчас эта проблема блокирует: пятисотим на медленных s3 клиентах, поэтому пока ждем мержа [PR](curl/curl#19653) в апстрим и релиза, занес патч сюда В тикете чуть больше подробностей commit_hash:3fe9cfbc23430dd59643f0915943455caad3db97
I have encountered an issue similar to #6358.
When pausing an upload, it is not actually excluded from the low speed cancelation. The issue seems to be that the condition in the code only checks if the "recv direction" of the transfer is paused, but not the "send direction".
Adding
Curl_xfer_send_is_pausedto the condition fixed the issuelibcurl version: 8.17
tested with protocols: http/https