-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Overlogging "WARN: Error copying to client" #160
Comments
This is a good idea. I'll expose the log function. Thanks for the kind words. On Mon, May 2, 2016 at 9:44 AM, elico notifications@github.com wrote:
|
It would be nice if these log messages specified if a request timed out from the client to the proxy or the server the proxy is attempting to communicate with. In general, the client dropping a connection is okay but the proxy dropping a connection to the server is pretty bad. I'm finding that slow server responses cause connections to be dropped. I didn't find any timeouts in the source, but it would be handy to know what connection was dropped, so we can debug that problem with timeouts. I patched my source like this, but there's better ways |
The timeouts are whatever timeouts set by stdlib net/http. Generally speaking this sounds like a good idea. On Thu, May 19, 2016 at 10:43 PM, Drew Wells notifications@github.com
|
any update regarding this issue? |
I believe it should be solved with the patch that does TCP.readClose and Is it still happening? On Wed, Aug 10, 2016, 9:35 AM Almog Baku notifications@github.com wrote:
|
Nope it's been working great with the fix On Wed, Aug 10, 2016, 1:37 AM Elazar Leibovich notifications@github.com
|
when had this patch made? I receive sometimes:
|
Can't it be a real problem? A real client had timed out? On Wed, Aug 10, 2016, 9:41 AM Almog Baku notifications@github.com wrote:
|
Yes, the browser just stuck and I can't access the page at all... Also received weird message from the Client log, which indicated that the (AWAITING_INITIAL {tunneling}) [id: 0xf6f67156, L:/127.0.0.1:16549 - On Wed, Aug 10, 2016 at 9:42 AM, Elazar Leibovich notifications@github.com
www.rimoto.com http://www.rimoto.net/ Almog Baku CTO & Cofounder * |
My issue specified in #178 I'm not sure if they even related to each other.. but I guess they are |
@AlmogBaku By any chance the browser\client is chrome? |
The issue that caused all the logs has been resolved and is currently part of the master branch. Closing this issue. |
I am running a very simple and tiny proxy:
And I noticed too verbose output for expected cases such as:
..WARN: Error copying to client: read tcp 192.168.10.168:8080->192.168.10.131:53531: write tcp 192.168.10.168:8080->192.168.10.131:53531: use of closed network connection
And the cause is at:
https://github.com/elazarl/goproxy/blob/master/https.go#L264
The proxy in general is great but I want to turn it off in general and to enable it only for debugging.
I was wondering if a solution can be added without me forking and patch the source?
My current idea is to filter using a case by the error content and to allow the "proxy.Verbose = false" to disable\eliminate specific cases which are expected at runtime, such as clients closing connections.
The text was updated successfully, but these errors were encountered: