-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Stable crash in client when server disconnects #1225
Comments
Can you provide the python server example you are using? I would like to try and reproduce that. |
Hi! The python server is based on https://gist.github.com/iaverin/f81720df9ed37a49ecee6341e4d5c0c6 with minor changes. The only significant change is moving to explicit HTTP/1.1 using. |
I am in the process of setting up a tiny project to be able to play with this a little. Your problem actually sounds a lot like the problem that was fixed in this pull request. This addressed an issue with reusing connections that were closed by the server in the mean time. Can you have a quick look at the code I linked above, whether this |
... so far no luck with reproducing your issue, unfortuantely. Though, I'm also using a different compiler and I am on macOS. If it would be a reproducible bug in cpprest's request handling, I would assume that it would show up anyway. |
I performed some investigation and found a bug in our scheme of cpprestsdk package versioning. Actually we are using cpprestsdk 2.10.6. And that version doesn't include the fix #979. It was my mistake and I am closing the issue. Thank you a lot for the help! |
Environment:
Client side - cpprestsdk 2.10.11( and also 2.10.13) Linux static build with gcc4.8, boost 1.68.0 Linux static build with gcc4.8.
Server side - python script based on http.server module (the problem occurs only when http.server.HTTPServer is used, but not http.server.ThreadingHTTPServer).
The client is C++ executable that periodically is sending requests to the server. When the server is stopped the client application crashes because of unhandled exception:
backtrace:
The only place I have found where such exception might be thrown is in the file: cpprestsdk/include/cpprest/streams.h.
Possibly related to #979, but this fix is included in 2.10.11 (2.10.13) versions that I tried.
Thanks!
The text was updated successfully, but these errors were encountered: