Re: [Quickfix-developers] ThreadedSocketInitiator eats file descriptors because of possibly open tc
Brought to you by:
orenmnero
|
From: H. S. <st...@un...> - 2006-11-30 14:30:43
|
Hi Oren, I just tried the current version from svn and still file descriptors are eaten up by the QF lib. It does only happen when the connect times out. Cheers, Heri On Wed, 2006-11-29 at 11:41 -0600, Oren Miller wrote: > I believe we put a fix for this in svn. Would you be able to check > out the latest and see if the problem persists? > > --oren > > On Nov 29, 2006, at 8:13 AM, H. Steuer wrote: > > > hi oren, > > > > i just discovered an issue with QF 1.12.4. QF does not close sockets > > when connections fail. therefore it starts eating one file descriptor > > per failed connection attempt. you can easily reproduce it by using > > the > > ThreadedSocketInitiator instead of the unthreaded version in the > > tradeclient example. now configure the engine to connect to an non > > existing address (my peer does not return RST but simply times out as > > the peer is turned off). > > > > for every failed connection attempt that the screenlogfactory displays > > on the screen, there is one more file descriptor open when having a > > look > > on the process (used fstat and lsof to verify). > > > > its QF 1.12.4 on FreeBSD, maybe someone on the list can verify the > > problem. > > > > > > > > cheers, > > heri > > > > > > > > > |