Re: [Asterisk-java-devel] Regarding accept() call IOException
Brought to you by:
srt
From: Shivram u <shi...@gm...> - 2006-08-11 10:42:00
|
Hi Stefan, > But shouldnt we just wait for the next client connection when the accept > > call fails > > If the server socket has a problem that is usually due to something as > severe as the socket being shutdown. I doubt it is usefull to try to > reuse it after it threw an exception. > If there are IOExceptions on the client sockets (i.e. client just > connects and disconnects) we already do continue with the next client. > > Did you encounter any problems with the code? 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 accept can fail if the client aborted the connection(ECONNABORTED) I tried searching the web for the reasons why an IOException could be generated for a socket accept(), but havent found any. Best Regards, Shivram U |