简体   繁体   English

Net :: HTTP.get_response超时

[英]Net::HTTP.get_response timeout

Does Net::HTTP.get_response timeout after some number of seconds? Net::HTTP.get_response在几秒钟后超时吗?
If it does not, is there a way for me to add a timeout? 如果没有,有没有办法让我添加超时?

There doesn't seem to be any method nor attributes for either Net:HTTP.get_response and/or Net:HTTP.get_print as per latest documentation . 根据最新文档 ,Net:HTTP.get_response和/或Net:HTTP.get_print似乎没有任何方法或属性。 There is a nice blog post that documents the basics for setting the timeouts though. 有一篇很好的博客文章记录了设置超时的基础知识。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM