[noPoll] Creating noPoll 2000 client node

Francis Brosnan Blázquez francis.brosnan en aspl.es
Mar Jun 14 09:46:44 CEST 2016


Hello Abhijeet,

I assume you are using nopoll_loop_wait IO mechanism for waiting 
for incoming connections, right? That is, you are not using your own
IO loop waiting and integrated noPoll inside, ok? 

In that context, take a look at "What are the 64 sockets limitations" 
from the following document:

https://tangentsoft.net/wskfaq/advanced.html

In short, define in your application something like this:

#define FD_SETSIZE 2048  
/ * ...and do that definition before importing noPoll */
#include <nopoll.h>

To have effect this change, you'll have to recompile noPoll with
this new value. 

Best Regards,


> Dear sir,
> 
> 
> 
> Currently we are developing websocket client and server in our
> application.
> Our application has one websocket server and 2000 websocket client.
> We are using windows versions for server C# websocket and for client
> mode we are using windows version of noPoll.
> 
> 
> But I am facing problem when I am about to implement 2000 websocket
> client.
> I am able to send packets to server with noPoll websocket API's.
> But when I am listening mode I am unable to get all 2000
> commands(packets) from server.
> We are having command sequence per client from server.
> 
> 
> I am listening to for all 2000 client connection with following API
> 
> 
> nopoll_ctx_set_on_msg(context,(void *)CollectorMessage, NULL);
> 
> 
> Whenever we receive any packets the CollectorMessage is hit properly
> but not for all 2000 connections.
> It is coming only for 64 clients. Please guide me in this regard.
> 
> 
> 
> 
> nopoll_conn_set_on_close(conn[Index],(void *)SessionCloseMSG, NULL);
> 
> 
> Do I require to make 2000 contexts in order to receive all commands
> for 2000 clients?
> 
> 
> 
> Please guide me in this regard.
> 
> 
> Thanks & Regards,
> Abhijeet R. Mudgal.
> 
> _______________________________________________
> noPoll mailing list
> noPoll en lists.aspl.es
> http://lists.aspl.es/cgi-bin/mailman/listinfo/nopoll


-- 
Francis Brosnan Blázquez  -  ASPL
http://www.asplhosting.com/
http://www.aspl.es/
https://twitter.com/aspl_es
https://twitter.com/asplhosting
https://twitter.com/francisbrosnanb

91 134 14 22 - 91 134 14 45 - 91 116 07 57

AVISO LEGAL
 
En virtud de lo dispuesto en la Ley Orgánica 15/1999, de 13 de
diciembre, de Protección de Datos de Carácter Personal, le informamos de
que sus datos de carácter personal, recogidos de fuentes accesibles al
público o datos que usted nos ha facilitado previamente, proceden de
bases de datos propiedad de Advanced Software Production Line, S.L.
(ASPL).
 
ASPL garantiza que los datos serán tratados con la finalidad de mantener
las oportunas relaciones comerciales o promocionales con usted o la
entidad que usted representa. No obstante, usted puede ejercitar sus
derechos de acceso, rectificación, cancelación y oposición dispuestos en
la mencionada Ley Orgánica, notificándolo por escrito a ASPL -
Protección Datos, C/Antonio Suárez 10 A-102, 28802, Alcalá de Henares
(Madrid).


------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://lists.aspl.es/pipermail/nopoll/attachments/20160614/561abe86/attachment.html>


Más información sobre la lista de distribución noPoll