-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Setting timeout with callback on start the asynchttpserver #3202
Labels
Comments
tulayang
changed the title
Setting timeout on the start asynchttpserver with callback
Setting timeout on start the asynchttpserver with callback
Aug 11, 2015
tulayang
changed the title
Setting timeout on start the asynchttpserver with callback
Setting timeout with callback on start the asynchttpserver
Aug 11, 2015
This issue has been automatically marked as stale because it has not had recent activity. If you think it is still a valid issue, write a comment below; otherwise it will be closed. Thank you for your contributions. |
ringabout
added
Feature
and removed
stale
Staled PR/issues; remove the label after fixing them
labels
Mar 10, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have an Idea that could setting timeout like this:
Call the proc
timeoutCb
and close the socket when usingasyncdispatch.recv
orasyncdispatch.recvInto
to read data for more than 1000 milliseconds.An object
FdTimerTable
used to register aAsyncFD
that may be timed out. RegisterAsyncFD
and milliseconds timeout in the procasyncdispatch.recv
orasyncdispatch.recvInto
.When the proc
poll
executed, call procprocessReadTimers(p: PDispatcher)
to iterative the orderedFdTimerTable
by timeout, close the socket and calltimeoutCb
if the setting timeout < current time.Example: close the client and call timeoutCb after 1s
The text was updated successfully, but these errors were encountered: