Infinite HTTP POSTing from an applet to a servlet...


P

ppcdev

Hi. I've tried to do something, just to see how it works... :

I've programmed an applet that communicates with a servlet on a socket
that works on the HTTP layer between my applet and my servlet...

Here's what I successfully tried :

1- Instantiate a connection between applet and servlet
2- Send 30 GET requests and 30 POST requests
3- Close the connection



Here's what make me crazy :

When I do a loop like this :

While(true) SendDataByPostRequest(new
String("QWERTYQWERTYQWERTYQWERTY")); the data are well received by the
servlet, and the response from the servlet works fine... The outgoing
data and incoming data (from servlet) processing works for about 100
of times... Then no Exception is thrown by servlet, and no Exception
is thrown by applet... But the connection seems to be down...



Would anyone know why the connection *seems* to be shutdown ? Is it
really down ? Why no data go on transferring between applet and
servlet ?

Thanks
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top