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

Request error: read tcp: i/o timeout #181

Closed
chriseldredge opened this issue Jul 30, 2015 · 2 comments
Closed

Request error: read tcp: i/o timeout #181

chriseldredge opened this issue Jul 30, 2015 · 2 comments

Comments

@chriseldredge
Copy link

Not sure if this is a problem in gor or somewhere else. I'm duplicating traffic from a production server to a new (otherwise) idle server to load test it before replacement.

Within about 10 seconds, I start seeing i/o timeout.

I suspect the new server is taking more than 10 seconds before beginning to write the response. I didn't see anything in the docs or settings about such an idle timeout.

sudo ./gor --input-raw :80 --output-http '10.0.0.1:80' --output-http-stats=true --stats=true
Version: 0.9.7
2015/07/30 19:00:04 output_http:latest,mean,max,count,count/second
2015/07/30 19:00:04 output_http:0,0,0,0,0
2015/07/30 19:00:09 output_http:1,2,4,21,4
2015/07/30 19:00:12 Request error: read tcp 10.0.0.1:80: i/o timeout
2015/07/30 19:00:13 Request error: read tcp 10.0.0.1:80: i/o timeout
2015/07/30 19:00:13 Request error: read tcp 10.0.0.1:80: i/o timeout
2015/07/30 19:00:14 output_http:6,5,6,23,4
2015/07/30 19:00:14 Request error: read tcp 10.0.0.1:80: i/o timeout
2015/07/30 19:00:16 Request error: read tcp 10.0.0.1:80: i/o timeout
2015/07/30 19:00:17 Request error: read tcp 10.0.0.1:80: i/o timeout
@buger
Copy link
Owner

buger commented Jul 31, 2015

I guess you talking about some sort of warmup time? If so, i'm not sure how to handle it properly, probably it is not Gor duty.

But i just added support for configurable http timeouts #183

@buger buger closed this as completed Jul 31, 2015
@buger buger reopened this Jul 31, 2015
@chriseldredge
Copy link
Author

That new option appears to be what I was running into. I'm load testing a server that may take more than 5 seconds to respond and this new switch will allow me to increase gor's timeout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants