-
Notifications
You must be signed in to change notification settings - Fork 50
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
ClientTLSChannel#read sometimes hangs #20
Comments
Hi Jason, Thanks for the report. I know it may be hard to extract, but is there a chance that you can send an example of the code that makes it hang? Alternatively, does it happen when you enable logging at the trace level? If so, getting the logs when it hangs would be helpful. |
Hello, The codebase is rather giant, so sending an example of the code may not be plausible. I can send you a link to the repo. Here is the logger's output:
And it hangs there While working on some of the debugging, I found that if I let it sit a really long time (3 minutes) it eventually finishes hanging The site I am requesting here is https://www.example.com/ At this point, my code is in blocking mode, as I just realized, but downgrading to 0.3.2 caused things to work, so I think the library is the one with the bug, not the speed at which data is received. (Also, as I mentioned, there seems to be a race condition) EDIT: |
Hi Jason, Sorry for the delay in the response. I tried hard, but could not reproduce your hanging. However, the master branch evolved in the last weeks, including some logical cleanups that might have fixed the bug. Is testing again with master something you could do? Thanks and regards. |
In the original issue I opened, I mistyped the version number (it's 0.4.0, not 4.0.0. Same for the version that had been working). However, even on that version, and using the same test site, I cannot reproduce it anymore, which is why I closed this issue. So either the issue only occurs on certain networks, or it was a one-off error. |
So if (using version 0.4.2), you go to the other bug I opened (For a totally different issue) I cannot test with the master branch because jitpack.io (the tool I use for using snapshots) will not compile the library. |
Thanks. I could reproduce it, and confirm that I the problem was already gone in master. So I just releases 0.5.0. |
Thank you! |
Hello
For a project I'm working on, the read method was hanging (no exceptions thrown, just hanging forever). I don't know how to reproduce it, but it was happening consistently on my application when I requested a certain site. It seems to be a race condition, as the issue went away if I ran some println between reads /shrug,
This behavior only happens in 4.0.0, so I have downgraded to 3.2.0 for now.
The text was updated successfully, but these errors were encountered: