jsonrpc-cpp-devel Mailing List for JsonRpc-Cpp
Brought to you by:
s-vincent
You can subscribe to this list here.
| 2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
(3) |
Oct
(1) |
Nov
(1) |
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2010 |
Jan
|
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2011 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
(2) |
Aug
(5) |
Sep
(2) |
Oct
|
Nov
|
Dec
|
| 2012 |
Jan
(3) |
Feb
(9) |
Mar
(3) |
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
(4) |
| 2013 |
Jan
|
Feb
|
Mar
(3) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(3) |
Sep
(2) |
Oct
|
Nov
(2) |
Dec
|
| 2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(2) |
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
|
|
|
1
|
2
|
3
|
|
4
|
5
|
6
|
7
|
8
|
9
|
10
|
|
11
|
12
|
13
|
14
|
15
|
16
|
17
|
|
18
|
19
|
20
|
21
|
22
|
23
|
24
|
|
25
|
26
|
27
(2) |
28
(1) |
29
|
30
|
31
|
|
From: Sebastien V. <seb...@cp...> - 2012-03-28 18:19:01
|
Hi, Fixed in SVN revision 64. Best regards, -- Seb Le 27/03/2012 12:47, seb...@cp... a écrit : > Hi, > > Thank you. You are right, effectively TCP sockets are not closed prior > being removed from the list. This will be fixed asap when I go back home. > > Best regards, > -- > Seb > > Envoyé depuis mon HTC > > ----- Reply message ----- > De : "PEI Normandie" <pei...@gm...> > Pour : <jso...@li...> > Objet : [Jsonrpc-cpp-devel] Bug report : Accept connexions > Date : mar., mars 27, 2012 03:29 > > > Hi all, > > Currently working on JSON RPC CPP, TCP Server, I have many concurrent > connexions and many many many calls ... > > After hundreds of calls, the server took 100% CPU load. The select > method did not wait. In fact, the call was registered, but the accept > method returned false ! > > After looking at ERRNO, I found out that I had a too many files opened. > > *The solution was simple :* > > Close the client file descriptor after the call to be treated. > > In current (non threaded) version 0.4 : File src/json_tcpserver.cpp > line 159, close the m_client before removing them from the std::list > > I think it is the same for UDP servers ? > > For the moment, the file descriptors are never closed .... no a good > idea :) > > > Hope that helps ! > > Médéric Salles > > > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > > > _______________________________________________ > Jsonrpc-cpp-devel mailing list > Jso...@li... > https://lists.sourceforge.net/lists/listinfo/jsonrpc-cpp-devel |
|
From: <seb...@cp...> - 2012-03-27 11:04:20
|
Hi, Thank you. You are right, effectively TCP sockets are not closed prior being removed from the list. This will be fixed asap when I go back home. Best regards, -- Seb Envoyé depuis mon HTC ----- Reply message ----- De : "PEI Normandie" <pei...@gm...> Pour : <jso...@li...> Objet : [Jsonrpc-cpp-devel] Bug report : Accept connexions Date : mar., mars 27, 2012 03:29 Hi all, Currently working on JSON RPC CPP, TCP Server, I have many concurrent connexions and many many many calls ... After hundreds of calls, the server took 100% CPU load. The select method did not wait. In fact, the call was registered, but the accept method returned false ! After looking at ERRNO, I found out that I had a too many files opened. The solution was simple : Close the client file descriptor after the call to be treated. In current (non threaded) version 0.4 : File src/json_tcpserver.cpp line 159, close the m_client before removing them from the std::list I think it is the same for UDP servers ? For the moment, the file descriptors are never closed .... no a good idea :) Hope that helps ! Médéric Salles |
|
From: PEI N. <pei...@gm...> - 2012-03-27 01:29:20
|
Hi all, Currently working on JSON RPC CPP, TCP Server, I have many concurrent connexions and many many many calls ... After hundreds of calls, the server took 100% CPU load. The select method did not wait. In fact, the call was registered, but the accept method returned false ! After looking at ERRNO, I found out that I had a too many files opened. *The solution was simple :* Close the client file descriptor after the call to be treated. In current (non threaded) version 0.4 : File src/json_tcpserver.cpp line 159, close the m_client before removing them from the std::list I think it is the same for UDP servers ? For the moment, the file descriptors are never closed .... no a good idea :) Hope that helps ! Médéric Salles |