Long-running requests
Closed this issue · 1 comments
Aupajo commented
Experiencing some very weird behaviour. A request like like this one:
TrackerApi::Client.new(token: '...').projects
…is taking about 4 minutes to complete (see log below). The response headers is reported a 0.06 second response time and the equivalent curl
command is almost instantaneous.
Is there anything that could be causing this?
I, [2015-06-23T13:49:38.240879 #40724] INFO -- : get => https://www.pivotaltracker.com/services/v5/projects
D, [2015-06-23T13:49:38.240960 #40724] DEBUG -- request: User-Agent: "Ruby/2.2.2 (x86_64-darwin14; ruby) TrackerApi/0.2.9 Faraday/0.9.1"
X-TrackerToken: "..."
D, [2015-06-23T13:49:38.240989 #40724] DEBUG -- request.body: nil
...big delay...
I, [2015-06-23T13:53:24.791875 #40724] INFO -- : 200 <= https://www.pivotaltracker.com/services/v5/projects
D, [2015-06-23T13:53:24.792010 #40724] DEBUG -- response: Content-Type: "application/json; charset=utf-8"
Status: "200 OK"
X-UA-Compatible: "IE=Edge,chrome=1"
ETag: "\"e19989034c2a0da8d08d41ac291ad561\""
Cache-Control: "max-age=0, private, must-revalidate"
X-Request-Id: "8ea5da95a43d099af46b83da01c06900"
X-Runtime: "0.068376"
Date: "Tue, 23 Jun 2015 19:53:21 GMT"
X-Rack-Cache: "miss"
X-Powered-By: "Phusion Passenger 4.0.41"
Server: "nginx/1.6.0 + Phusion Passenger 4.0.41"
Access-Control-Allow-Origin: "*"
Access-Control-Allow-Credentials: "false"
Access-Control-Allow-Methods: "GET, POST, PUT, DELETE, OPTIONS"
Access-Control-Allow-Headers: "X-TrackerToken,DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,X-Tracker-Warn-Unless-Project-Version-Is"
X-Tracker-Client-Pinger-Interval: "12"
Aupajo commented
The issue turned out to be with Ruby's IPv6 support – I just set my system's IPv6 configuration to link-local, and started getting reasonable response times.