It should timeout eventually. I have applications that when they fail to
connect they do not hang for ever. The failure is detected by low level TCP
connect() primitives. The timeout is, IIRC, about 30 seconds.
What are you seeing? What platform?
Regards,
-gww
________________________________
From: Klaus Holst Jacobsen [mailto:[email protected]]
Sent: Friday, December 11, 2009 1:12 PM
To: [email protected]
Subject: [ltk-d] hanging in CConnection::openConnectionToReader(...)
Hello
Thank you for your answer to my questions so far.
I'm using LTP-CPP CConnection to establish a connection to a reader.
If I call CConnection::openConnectionToReader(...) but the reader is not
available for some reason (powered off) the method call will simply hang.
What is the best way to back out of such a situation?
Calling CConnection::closeConnectionToReader(...) from another thread will not
help as this call will return without causing the hung
openConnectionToReader(...) call to return.
Deleting the CConnection object while hung inside openConnectionToReader(...)
is not nice.
I guess the ideal solution would be to add timeout value to the
openConnectionToReader(...) method like it is done with e.g.
CConnection::transact(...)
But what should I do with the current options?
Please help!
Regards
Klaus
------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
llrp-toolkit-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/llrp-toolkit-devel