-
Notifications
You must be signed in to change notification settings - Fork 246
Feature request: Add support for client-side timeout #26
Comments
Move to backlog since it's not a must have for the initial release. |
Hey @devigned @guangyang I'm hitting this issue quite hard while doing some integration with cloud foundry. We're trying to upload a large page blob, (thousands of pages). We're doing it multithreaded and at some point all of our upload threads hang. I tried patching the Raising an exception on our thread calling the sdk doesn't seem to clean up the tcp connection (we see the connections hanging via Any guidance here on the best way to implement a client-side timeout that will cleanup the connection? @ritazh - FYI |
This issue happens almost all the time for us, but sometimes (rarely) the code as it is works. I'm sure in other network situations, the code may work more reliably but this issue causes the upload to not work in some scenarios. |
And FYI - I've had to do a similar implementation for the bosh azure cpi. It would be great to get something like this into the ruby sdk. I'm not a ruby pro though and I'm not sure what timeout we'd want to use but I'd be happy to PR a change here if you guys think you'll take it. |
It is possible for an HTTP call to never return. When that happens, the client needs to know when to give up, using a client-side timeout. See this Java code that adds the client-timeout support for ideas.
Note: PHP does not have this feature, and neither did Java for the first 8 months.
The text was updated successfully, but these errors were encountered: