RE: [Quickfix-users] QuickFIX becomes unresponsive after running for some time...Please help
Brought to you by:
orenmnero
From: Oren M. <ore...@ya...> - 2003-05-21 05:56:23
|
Hmm that's strange. I don't really see why this would deadlock. Could you supply a little more information about your setup? Are you using the SocketInitiator/Acceptor or the Threaded versions. Which application callback are you responding to? Are you just listening for messages on fromApp, cracking them and responding? Concerning DOs and DONTs, I'd actually like to set up a Wiki at some point. I think this would be a good way for users to share their experiences and usage patterns. --- vi...@ma... wrote: > Hi, > > Thanks for the quick response. > > The version we are running already have this > change!! > > We could trace the problem to the way threads > were accessing Sessions. > > When Session.sendToTarget was called directly > from callback onMessage, somehow a deadlock > was getting developed. > > Instead, when we launched a separate thread to > make call to Session.sendToTarget, allowing > onMessage to complete quickly, it started working > fine... > > Could we get a DOs and DONTs using QuickFIX engine? > > Thanks, > > Vivek > > -----Original Message----- > From: Oren Miller [mailto:ore...@ya...] > Sent: Tuesday, May 20, 2003 2:18 PM > To: Vivek Divekar; > qui...@li... > Subject: Re: [Quickfix-users] QuickFIX becomes > unresponsive after > running for some time...Please help > > > This is probably the race condition which this patch > fixes: > http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/quickfix/quickfix/src/C%2b%2b/Session.cpp.diff?r1=1.5&r2=1.6 > > --- vi...@ma... wrote: > > Hi, > > > > We are using Quick FIX latest version 1.4.1 on > both > > Windows 2000 and Red Hat Linux 8.0, > > using Java. We are faced with a problem as > mentioned > > below... > > In our application, we are using 4 instances of > > Application wherein 2 are socket initiators > > and 2 are acceptors. > > > > APP 1 <------------> APP2 > > <----------------------->APP3 <------------->APP4i > > nitiator acceptor > > > initiator acceptor > > > > These are run as 4 different threads. What has > been > > observed is that after running for some > > time, the call to method > > Session.sendToTarget(message, sessionId) just > hangs. > > > > On NT, it runs longer but on Linux it lasts for > only > > a short while. > > > > Could one please help throw some light on what > might > > be going wrong! > > > > Thanks, > > > > Vivek > > > > > > > > MASTEK > > Investing in relationships > > In the US, we're called MAJESCO > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > Opinions expressed in this e-mail are those of the > > individual and not that of Mastek Limited, unless > > specifically indicated to that effect. Mastek > > Limited does not accept any responsibility or > > liability for it. This e-mail and attachments (if > > any) transmitted with it are confidential and/or > > privileged and solely for the use of the intended > > person or entity to which it is addressed. Any > > review, re-transmission, dissemination or other > use > > of or taking of any action in reliance upon this > > information by persons or entities other than the > > intended recipient is prohibited. This e-mail and > > its attachments have been scanned for the presence > > of computer viruses. It is the responsibility of > the > > recipient to run the virus check on e-mails and > > attachments before opening them. If you have > > received this e-mail in error, kindly delete this > > e-mail from all computers. > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: ObjectStore. > > If flattening out C++ or Java code to make your > > application fit in a > > relational database is painful, don't do it! Check > > out ObjectStore. > > Now part of Progress Software. > > http://www.objectstore.net/sourceforge > > _______________________________________________ > > Quickfix-users mailing list > > Qui...@li... > > > https://lists.sourceforge.net/lists/listinfo/quickfix-users > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Search - Faster. Easier. Bingo. > http://search.yahoo.com > > > MASTEK > Investing in relationships > In the US, we're called MAJESCO > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Opinions expressed in this e-mail are those of the > individual and not that of Mastek Limited, unless > specifically indicated to that effect. Mastek > Limited does not accept any responsibility or > liability for it. This e-mail and attachments (if > any) transmitted with it are confidential and/or > privileged and solely for the use of the intended > person or entity to which it is addressed. Any > review, re-transmission, dissemination or other use > of or taking of any action in reliance upon this > information by persons or entities other than the > intended recipient is prohibited. This e-mail and > its attachments have been scanned for the presence > of computer viruses. It is the responsibility of the > recipient to run the virus check on e-mails and > attachments before opening them. If you have > received this e-mail in error, kindly delete this > e-mail from all computers. > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > > ------------------------------------------------------- > This SF.net email is sponsored by: ObjectStore. > If flattening out C++ or Java code to make your > application fit in a > relational database is painful, don't do it! Check > out ObjectStore. > Now part of Progress Software. > http://www.objectstore.net/sourceforge > _______________________________________________ > Quickfix-users mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-users __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com |