Hi,
Have you found anything for this? What was the problem and how do check to
see that it's still 5?
On Sunday, 11 August 2013 17:12:09 UTC+8, Tolgay Toklar wrote:
>
> Hi
>
> I am using socket.io (with xhr-polling) but after 5 connections
> socket.iohangs.I want to remove this limit,I wrote this code in my app.js
> (server)
>
>
>
>
>
> *var io=require('socket.io <http://socket.io>');var
> http=require('http');http.globalAgent.maxSockets = 20;http.Agent.maxSockets
> = 20;var server = http.createServer().listen(*
>
>
>
>
>
> *8440); io = io.listen(server);io.set('transports', [ , 'xhr-polling' ,
> 'websocket' , 'jsonp-polling' ]);*
>
> But Didn't work I still have 5 connection limit.When I was use this code
>
>
>
>
> *var io=require('socket.io <http://socket.io>');var
> http=require('http').globalAgent.maxSockets = 20;var server =
> http.createServer().listen(*
>
>
>
>
>
>
> *8440); io = io.listen(server);io.set('transports', [ , 'xhr-polling' ,
> 'websocket' , 'jsonp-polling' ]);*
>
> I am getting this error message
>
> *Object 30 has no method createServer()*
>
> How can I resolve this ? I searched all internet but didn't find any
> solution.Please help me
>
--
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.