-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Netty handshake timeout for large request body when used with proxy server #1559
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
Comments
There's absolutely no reason for TLS handshake to be related to upload size, as the former happens BEFORE (just after opening a new socket) the latter. Does this happen with one single request, or does it happen under load? Are you sure you're not simply saturating your bandwidth and/or your proxy with your large uploads, so that TLS handshake TCP segments can't get through? PS: I no longer answer on stackoverflow |
@slandelle Just one request irrespective of the load. I've tried randomly generating the request body of the same size and it doesn't work for that either. The same request with large body works fine without the proxy server FYI. |
Could you please provide a way to reproduce? |
@slandelle Yes, I was just able to figured out how to reproduce :
You should ideally see an error message from sendgrid saying |
Wanted to add one more point : The same request works fine when using a different http client, scalaj-http which is a wrapper of java.net.HttpURLConnection |
Thanks for reporting. |
@slandelle Thanks for the quick fix! When can I expect it to be published? |
As soon as uploading on Sonatype stops failing... |
I managed to release. Just need to wait for sync with maven central. |
Uh oh!
There was an error while loading. Please reload this page.
I am calling an email marketing service with a huge body(html). The size of the body = 117184.
I am using AsyncHttpClient as follows.
When I call the request directly, it is successful but it fails with the following exception when I try to use an internal https proxy server. But a small body with proxy server works fine. Following is the scala code :
Basically :
large body and no proxy server : works fine.
small body and with and without proxy server : works fine.
large body with proxy server : DOESN'T WORK.
I see the following exception for requests with large body using proxy server.
PS: stackoverflow
The text was updated successfully, but these errors were encountered: