Open akaiworld opened 12 years ago
nobody's here =(
Hey man. This is a issue related to Agent maxSockets of node. It defaults with 5 only open connections to the same domain/ip. Raise this default node setting and it should work.
pnegri, how do you know that it's related to the 5 connection max? There's only 1 connection happening in that description?
Was having one problem related to how much OAuth tokens possible to get per second, and had the problem with streaming too. The first fix is increase connection max request. The second fix its to try again when you get 401.
Weird... very odd that max connections would help! (in fact twitter might count this against you) ..trying again would though ... usually the answer to this question is (oddly) they're not using quite the right subdomain on twitter (seriously)
Then, sorry for any confusion. :)
;) Sorry I didn't meant to criticise, just was interested in what you'd spotted!
Thank you for the answer. Tried to change http.Agent.maxSockets = 100; did not help, the same result. Also tried http.globalAgent.maxSockets = 100; and http.Agent.defaultMaxSockets = 100; did not help neither...
If it matters, i use http.createServer(function(request, response) { ... }); and socket.io
during the test one client is connected. and the oauth data was already retrieved before the test
+1 on getting this fixed, Twitter streaming API access is really important.
When trying to make a get request(as described in wiki) to the twitter's streaming api i get the answer 401/unauthorized.
Requests to the rest api work well with the same get method and the same oauth _access_token/secret_token.
PS In wiki the request is via http. Twitter does not accept it at all. To https returns described result