简体   繁体   中英

Net::HTTP.get_response timeout

Does Net::HTTP.get_response timeout after some number of seconds?
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 . There is a nice blog post that documents the basics for setting the timeouts though.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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