2 May 20:10
TCPSocket with multiple sub-domains - always a 60 second timeout
From: Luke Bayes <lbayes <at> patternpark.com>
Subject: TCPSocket with multiple sub-domains - always a 60 second timeout
Newsgroups: gmane.comp.lang.ruby.core
Date: 2008-05-02 18:13:57 GMT
Subject: TCPSocket with multiple sub-domains - always a 60 second timeout
Newsgroups: gmane.comp.lang.ruby.core
Date: 2008-05-02 18:13:57 GMT
Hey Folks, We've stumbled over a surprising behavior and I wanted to check in to see if anyone else has experienced this. We're trying to download and parse RSS feeds. The URL that we're hitting has two sub-domains (Is that even valid http?) The official feed URL that we're hitting is: http://www.ndbc.noaa.gov/rss/ndbc_obs_search.php?lat=45.13N&lon=150.47W Note the 'www.ndbc' sub-domain. If we remove the 'www' portion, requests return in under a second (as expected), but if we leave that sub-domain in place, the request takes exactly 60 seconds, then returns with a valid result. If we insert additional sub-domains, we are delayed exactly 60 seconds for each sub-domain inserted and finally, the request will fail. We've chased the blocking line to line 574 of net/http.rb def connect D "opening connection to #{conn_address()}..." s = timeout(@open_timeout) { TCPSocket.open(conn_address(), conn_port()) } D "opened" ... The behavior is still exhibited when this code is changed to: def connect(Continue reading)
RSS Feed