Set timeout on the socket
________________________________
From: James Agnew
To: [email protected]
Cc: [email protected]
Sent: Sun Mar 22 18:11:24 2009
Subject: Re: [HAPI-devel] StreamReader.Read Hangs
Hi Murali,
It sounds like what you need to do is call Socket#setSoTimeout() on your socket.
InputStream objects don't really support any way of being made non-blocking,
but the underlying socket could be.
James
On Mon, Mar 2, 2009 at 1:01 PM, Murali <[email protected]> wrote:
Hi All,
I have built HL7 client application which sent messages to any HL7 server and
able to receive messages back. I use MinLLPReader class.
when there was no ACK messages from the other end server,
streamreader.getmessage() just hangs.
If anyone comes across this issue, please share you experience
Your help is very much appreciated
Thanks
Murali
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San
Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Hl7api-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Hl7api-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel