hyper icon indicating copy to clipboard operation
hyper copied to clipboard

Readtimeout is not implemented master

Open abhijeetgituser opened this issue 6 years ago • 5 comments

I am using hyper version hyper 0.7.0 and I am facing an issue with my code. I am not able to find out how readtimeout works hyper.

During execution I found that connect timeout is there but in case we are able to connect to the endpoint but never received any ACK messages back from the endpoint the connection hangs in between.

abhijeetgituser avatar Apr 11 '19 10:04 abhijeetgituser

What are you doing at the minute? This line seems to be where the read timeout for the socket is set, its value is set here. If timeout is a single value (passed in HTTP20Connection._init_()), it uses that value for both connect_timeout and read_timeout, but if timeout is a tuple each value is used for the respective timeout.

dhdavvie avatar Apr 11 '19 13:04 dhdavvie

Thank you very much for the response.

I am installing hyper using pip. So I think I am getting master branch installed and changes/implementations(you suggest) are on the development branch. How can I get those changes installed using pip?

abhijeetgituser avatar Apr 11 '19 16:04 abhijeetgituser

The following should work: clone the repo locally, and check out the development branch, then run python setup.py install in the directory, that should install the package to your python packages. Note that it is a development branch so don't assume that everything works :)

dhdavvie avatar Apr 11 '19 16:04 dhdavvie

Last question, any plan to merge the changes in to the master in near future?

Thank you! you can close this issue

abhijeetgituser avatar Apr 11 '19 17:04 abhijeetgituser

That would be up to the repo owner, I'm just a passer by :) I can't close the issue unfortunately, you should be able to do that on your end

dhdavvie avatar Apr 11 '19 19:04 dhdavvie