RE: RES: TCP-FIN problem

2003-12-23 Thread George Sexton
List Subject: Re: RES: TCP-FIN problem Maybe with a little bit more detail: Application Code: try { ClientSocket = new Socket(IPAddress, Port); Sender = new OutputStreamWriter(ClientSocket.getOutputStream

Re: RES: TCP-FIN problem

2003-12-23 Thread Jon Anderson
On Tuesday 23 December 2003 10:53 am, Philipp Taprogge wrote: > Hi! > > Sebastian Klenk wrote: > > My question is now if there is a way to tell tomcat that all data has > > been written an that the connection can be closend!? Are you using HTTP for the connection? If so, are you disabling the HTT

Re: RES: TCP-FIN problem

2003-12-23 Thread Alexander Taler
> To: Tomcat Users List <[EMAIL PROTECTED]> Sebastian> Subject: Re: RES: TCP-FIN problem Sebastian> Date: Tue, 23 Dec 2003 18:36:53 +0100 Sebastian> I already send some more code, and if it helps the (FIN,ACK) comes Sebastian> from tomcat and my app responds with a (A

Re: RES: TCP-FIN problem

2003-12-23 Thread Sebastian Klenk
I already send some more code, and if it helps the (FIN,ACK) comes from tomcat and my app responds with a (ACK) imediatelly, then the connection is closed. but it takes aproximatly 30 seconds till the (FIN,ACK) is send after all data has been send. So it looks like this: ... connection establis

Re: RES: TCP-FIN problem

2003-12-23 Thread Sebastian Klenk
Maybe with a little bit more detail: Application Code: try { ClientSocket = new Socket(IPAddress, Port); Sender = new OutputStreamWriter(ClientSocket.getOutputStream()); Reciever = new Inp

Re: RES: TCP-FIN problem

2003-12-23 Thread Philipp Taprogge
Hi! Sebastian Klenk wrote: actually i thought that tomcat was supposed to close the connection after all data has been send - if not this explains a lot! It does, but TCP handshakes are no one-way street. I can only do wild guesses from here, but what I think is happening is this: after tomcat s

Re: RES: TCP-FIN problem

2003-12-23 Thread Sebastian Klenk
actually i thought that tomcat was supposed to close the connection after all data has been send - if not this explains a lot! try { int c; while(-1 != (c = Reciever.read())) /* here I'm "waiting" until the connection is closed! */ XMLBuffer.app

Re: RES: TCP-FIN problem

2003-12-23 Thread Philipp Taprogge
Hi! Sebastian Klenk wrote: I didn't do anything ... the only problem I have is that my app. is not very fast, and that is because it has to wait for tomcat to close the connection, but tomcat closes the connection a lot later (ca 1 minute). My question is now if there is a way to tell tomcat tha

Re: RES: TCP-FIN problem

2003-12-23 Thread Sebastian Klenk
I didn't do anything ... the only problem I have is that my app. is not very fast, and that is because it has to wait for tomcat to close the connection, but tomcat closes the connection a lot later (ca 1 minute). My question is now if there is a way to tell tomcat that all data has been written