You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, first off: we really enjoy the library and it works really well. So thank you all! But we are facing the following issue:
Given you are using Firefox to connect to a server-sent event stream on a SSLServer. When closing the tab in Firefox and the stream does not send anymore data thereafter. Then the stream's socket stays in the state CLOSE_WAIT indefinitely.
After a few times the thread pool is exhausted and the server is unresponsive.
Hi, first off: we really enjoy the library and it works really well. So thank you all! But we are facing the following issue:
Given you are using Firefox to connect to a server-sent event stream on a SSLServer. When closing the tab in Firefox and the stream does not send anymore data thereafter. Then the stream's socket stays in the state CLOSE_WAIT indefinitely.
After a few times the thread pool is exhausted and the server is unresponsive.
This is the minimal example code for the server:
In the following I try to summarize my findings:
I modified the httplib.h file for better strace logging:
When I first connect to the running server using Firefox via https://10.149.108.178/silent:
and strace repeats this pattern:
Closing the tab in Firefox gives me:
and strace repeats this pattern:
The decrypted Wireshark logs shows:
and the message the strace shows in
Is the close_notify from the wireshark log.
Here I have the decrypted Wireshark log for a curl equivalent:
Let me know if you need any other information. Thank you!
The text was updated successfully, but these errors were encountered: