I am currently trying to develop behind a firewall that restricts my connections to some major ports (www, email, https, etc, but NOT 1984 - our database port).
I was wondering what took the page so long to load (no output was produced). After two minutes or so the following error page:
Errno::ETIMEDOUT in TrackController#index
Connection timed out - connect(2)
Rails.root: /home/hendrik/Projekte/xmlproj/gpsies-xml/gpsies-xml-gui
Application Trace | Framework Trace | Full Trace
lib/basex/BaseXClient.rb:16:in initialize' lib/basex/BaseXClient.rb:16:in
open'
lib/basex/BaseXClient.rb:16:in initialize' app/models/track.rb:24:in
new'
app/models/track.rb:24:in all' app/controllers/track_controller.rb:5:in
index'
After that I realized that my firewall's blocking the basex port.
Question: Is there a way to set a proper timeout for your connection attempts? If so, we should try to catch the timeout in all of our forms.
Grüße