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

We should retry shutdown on EINPROGRESS error. Fixes #3168 #4433

Merged

Conversation

akzhan
Copy link
Contributor

@akzhan akzhan commented May 19, 2017

Just like EAGAIN handling behavior but due to another reason.

@akzhan akzhan changed the title Mimics EAGAIN on EINPROGRESS error while ssl_shutdown. Fixes #3168 We should retry shutdown on EINPROGRESS error. Fixes #3168 May 19, 2017
@ysbaddaden
Copy link
Contributor

Does it reliably fix the reduced test case in #3168 (granted you have the issue without the fix) ? If so, don't worry about writing a spec, we'll merge this long awaited fix!

@akzhan
Copy link
Contributor Author

akzhan commented May 20, 2017

Yes, of course, it is real patch that fixes #3168.

@RX14
Copy link
Contributor

RX14 commented May 20, 2017

I just tested this patch on my machine, it fixes #3168 for me.

@denysvitali
Copy link

Tested too, works for me!

dvitali@denvit-ws1:crystal/bin ‹retry-EINPROGRESS-on-unbuffered-close*›$ ./crystal ~/Documents/crystal/test/http_problem.cr 
Using compiled compiler at `.build/crystal'
dvitali@denvit-ws1:crystal/bin ‹retry-EINPROGRESS-on-unbuffered-close*›$ ./crystal -v                                      
Using compiled compiler at `.build/crystal'
Crystal 0.22.0+? [30c7410] (2017-05-20) LLVM 4.0.0

@ysbaddaden
Copy link
Contributor

There is an issue on CI. Once fixed we'll be able to merge this.

Just like EAGAIN handling behavior but due to another reason.
@akzhan akzhan force-pushed the retry-EINPROGRESS-on-unbuffered-close branch from 30c7410 to cfd20db Compare May 20, 2017 15:19
@akzhan
Copy link
Contributor Author

akzhan commented May 20, 2017

New commit to just reword comments to make it easy to understood after years.

@RX14
Copy link
Contributor

RX14 commented May 20, 2017

Looks like circleci picked up this push and is building this PR. Travis OSX has been flaky on network for weeks, so build failures on travis but not circleci should probably be ignored.

@ysbaddaden
Copy link
Contributor

Thank you!

@ysbaddaden ysbaddaden merged commit 503fc04 into crystal-lang:master May 21, 2017
@akzhan akzhan deleted the retry-EINPROGRESS-on-unbuffered-close branch May 21, 2017 17:50
@mverzilli mverzilli added this to the Next milestone May 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants