Skip to content

Httpclient nonblocking operations (OnIdle)

Ondrej Pokorny requested to merge fpc-ondrej/source:httpclient_nonblocking4 into main

During connect/read/write socket operations the client is not responsive. This is especially painful for IOTimeOut=0 and a long server-side request.

This merge request fixes it with the new property IdleTimeout and OnIdle event.

By default the changes are disabled. You must set IdleTimeout>0 to get the non-blocking features.

Merge request reports