Re: socket connection within servlet to the same container

2006-11-14 Thread Dmitry Kandalov
View this message in context: http://www.nabble.com/socket-connection-within-servlet-to-the-same-container-tf2620595.html#a7352221 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail

Re: socket connection within servlet to the same container

2006-11-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dmitry, Dmitry Kandalov wrote: > Say I have code like this: > [snip] > socket = new Socket( request.getLocalAddr(), request.getLocalPort() > ); > socket.getOutputStream().write( requestString.getBytes( "ISO-8859-1" > ) ); > soc

socket connection within servlet to the same container

2006-11-12 Thread Dmitry Kandalov
t.close(); ... } It hangs at reading. I found that it works fine without "Cookie: JSESSIONID=..." in the header. Is it because there's synchronization somewhere on session id? Is this kind of socket connections considered to be evil? ps sorry if it's very basic -- View this