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
(2) |
14
|
15
|
16
|
17
|
18
|
19
|
|
20
|
21
|
22
|
23
|
24
|
25
|
26
|
|
27
|
28
|
29
|
30
|
31
|
|
|
|
From: Sebastien V. <seb...@cp...> - 2014-07-13 06:09:23
|
Hi, This is already fixed in SVN trunk repository : http://sourceforge.net/p/jsonrpc-cpp/code/HEAD/tree/trunk/src/jsonrpc_tcpserver.cpp Thanks anyway. Regards, -- Seb Le 13/07/2014 07:41, Markus Gaugusch a écrit : > Hi, > > I'm using jsonrpc-cpp-0.4 and found a major bug. After some time my > applicaiton (using TcpServer) stopped working with 100% CPU load. I found > out that it used many many file descriptors due to not closing the client > sockets. > > The fix is rather simple: > --- src/jsonrpc_tcpserver.cpp.orig 2014-07-13 07:39:55.237060802 > +0200 > +++ src/jsonrpc_tcpserver.cpp 2014-07-13 06:17:27.462943211 +0200 > @@ -185,6 +185,7 @@ > /* remove disconnect socket descriptor */ > for(std::list<int>::iterator it = m_purge.begin() ; it != m_purge.end() ; it++) > { > + ::close((*it)); > m_clients.remove((*it)); > } > > > thanks, > Markus > > ------------------------------------------------------------------------------ > _______________________________________________ > Jsonrpc-cpp-devel mailing list > Jso...@li... > https://lists.sourceforge.net/lists/listinfo/jsonrpc-cpp-devel |
|
From: Markus G. <ma...@ga...> - 2014-07-13 05:49:25
|
Hi,
I'm using jsonrpc-cpp-0.4 and found a major bug. After some time my
applicaiton (using TcpServer) stopped working with 100% CPU load. I found
out that it used many many file descriptors due to not closing the client
sockets.
The fix is rather simple:
--- src/jsonrpc_tcpserver.cpp.orig 2014-07-13 07:39:55.237060802
+0200
+++ src/jsonrpc_tcpserver.cpp 2014-07-13 06:17:27.462943211 +0200
@@ -185,6 +185,7 @@
/* remove disconnect socket descriptor */
for(std::list<int>::iterator it = m_purge.begin() ; it != m_purge.end() ; it++)
{
+ ::close((*it));
m_clients.remove((*it));
}
thanks,
Markus
|