Menu

#80 Allow proper Abort of THTTPSend.HTTPMethod

SVN
open
nobody
None
5
2024-02-15
2024-02-15
No

Hello,

If we call THTTPSend.HTTPMethod with a very large timeout from a first thread, and call Abort from a second thread, the call to HTTPMethod will not return until the timeout has elapsed.

The attached patch introduces RecvStringAbortable which waits by a small amount of time in a given loop, thus allowing to exit before the complete timeout has elapsed if Abort has been called.

This allowed me to have a rapid application ending instead of having it feel "frozen" until the timeout elapses.

1 Attachments

Discussion


Log in to post a comment.