-
Notifications
You must be signed in to change notification settings - Fork 558
Setting the read timeout in the RequestConfig is not enough. #150
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
Conversation
The read timeout must be set in the SocketConfig as well. Setting the read timeout only in the RequestConfig can cause hangs which could block the whole proxy forever.
createHttpClient() and do not create a customized socket configuration if no read timeout is set
Cool. Please update CHANGES.md too and I'll squash-merge. |
@dsmiley done :) |
@dsmiley any release plans for 1.11? |
I think I will in a week or two. Feel free to harass me if I don't :-) |
@dsmiley PING :) |
@dsmiley PONG ? |
Tracked here: #157 |
This PR causes an incompatible change, our code no longer builds because of the overriding method has changed (we need to add HTTP basic auth). Therefore, release 1.11 really should have been called 2.0! |
I confess I don't pay much attention to backward compatibility; sorry. At least the proxy is small, and at least you got a build error instead of some silent semantics difference. |
David Smiley dixit:
I confess I don't pay much attention to backward compatibility; sorry.
OK. Maybe later? ☻
At least the proxy is small, and at least you got a build error instead
of some silent semantics difference.
Indeed. I’ve rolled back to the last version with the old method for now
and someone might eventually port it to the latest version. (It’s not my
code.) If interested:
https://evolvis.org/plugins/scmgit/cgi-bin/gitweb.cgi?p=veraweb/veraweb.git;a=blob;f=core/src/main/java/de/tarent/veraweb/proxy/ProxyServlet.java;h=94934e06e5f9535e8e857a0467c3c3f422951c40;hb=refs/heads/master
bye,
//mirabilos
--
tarent solutions GmbH
Rochusstraße 2-4, D-53123 Bonn • http://www.tarent.de/
Tel: +49 228 54881-393 • Fax: +49 228 54881-235
HRB 5168 (AG Bonn) • USt-ID (VAT): DE122264941
Geschäftsführer: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg
|
The read timeout must be set in the SocketConfig as well.
Setting the read timeout only in the RequestConfig can cause hangs which
could block the whole proxy forever.