Skip to content
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

unpredictable crashes using http client #804

Closed
extrawurst opened this issue Sep 2, 2014 · 4 comments
Closed

unpredictable crashes using http client #804

extrawurst opened this issue Sep 2, 2014 · 4 comments
Milestone

Comments

@extrawurst
Copy link
Contributor

i am really lost here. since updating from stable 0.7.19 to the current alpha i get random crashes in my http client app:

(normally i am used to getting nice callstacks and all)

[02540F80:02544500 trc] ---------------------
[02540F80:02544500 trc] HTTP client response:
[02540F80:02544500 trc] ---------------------
[02540F80:02544500 trc] HTTP/1.1 200 OK
[02540F80:02544500 trc] Server: vibe.d/0.7.20
[02540F80:02544500 trc] Date: Tue, 02 Sep 2014 18:53:00 GMT
[02540F80:02544500 trc] Keep-Alive: timeout=10
[02540F80:02544500 trc] Access-Control-Allow-Origin: http://localhost:8080
[02540F80:02544500 trc] Access-Control-Allow-Credentials: true
[02540F80:02544500 trc] Connection: keep-alive
[02540F80:02544500 trc] Cache-Control: no-store, no-cache, must-revalidate, max-age=0
[02540F80:02544500 trc] Content-Type: text/plain; charset=UTF-8
[02540F80:02544500 trc] Content-Length: 498
[02540F80:02544500 trc] ---------------------
[02540F80:02544500 trc] evbuffer_read 498 bytes (fd 644)
[02540F80:02544500 trc]  .. got 498 bytes
[02540F80:02544500 trc] read data
[02540F80:02544500 trc] exception trap
[02540F80:02544500 ERR] Task terminated with unhandled exception: Win32 Exception

any ideas ?

shouldn't the next line of code logDebug("Full error: %s", th.toString().sanitize); write out more info ?

@etcimon
Copy link
Contributor

etcimon commented Sep 2, 2014

Took me a while to fix my pull request, but the latest commit should be good and should fix this error. The problem is a bad keep-alive value at 0 seconds, it closes the connection unexpectedly and causes subsequent read/writes to fail.

#756

@extrawurst
Copy link
Contributor Author

Ok, well i am happy to test it once it is tagged ;)

@s-ludwig
Copy link
Member

s-ludwig commented Oct 2, 2014

#756 got merged, please retest with 0.7.21-rc.1 once you get some time.

@s-ludwig s-ludwig added this to the 0.7.21 milestone Oct 13, 2014
@extrawurst
Copy link
Contributor Author

for me this issue seems to be fixed, i am closing this one!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants