Re: [Asterisk-java-devel] Regarding accept() call IOException
Brought to you by:
srt
From: Stefan R. <sr...@re...> - 2006-08-11 17:48:33
|
Shivram u wrote: > I havent encountered any problems with that code. I browsing the code > came across this. Im not that experienced in java. I assumed that the > accept() call would be similar to a C lib accept() call, where an accep= t > can fail if the client aborted the connection(ECONNABORTED) > =20 > I tried searching the web for the reasons why an IOException could > be generated for a socket accept(), but havent found any. Yes, you are right. There is not much documentation but it seems indeed that most exceptions are recoverable. I changed the code to check for the die flag and break only if we explicitly closed the socket by shutdown(). You can see the changes at http://asterisk-java.org/fisheye/browse/repos/asterisk-java/trunk/src/mai= n/java/org/asteriskjava/fastagi/DefaultAgiServer.java?r1=3D492&r2=3D538#s= eg26 Thanks! Stefan --=20 reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: sr...@re... Jabber: sr...@ja... |