RE: Socket GURU'S PLEASE HELP ON OBSCURE PROBLEM

2002-12-02 Thread Jeremy Joslin
Looks like you're trying to implement a small webserver but you're not obeying the HTTP spec. You need to read the entire request in from the client before responding and you should send the appropriate response header, e.g. HTTP/1.1 200 OK, or your results will be unpredictable. The reason you

RE: Socket GURU'S PLEASE HELP ON OBSCURE PROBLEM

2002-12-02 Thread Jason Johnston
Thanks Jeremy. You're right in that I'm not correctly implementing HTTP, but I'm not sure that's my problem. When I kill the lines that write to the output stream prematurely, I still never exit that loop. My program just simply waits forever. In fact, the client never times out. I've left

RE: Socket GURU'S PLEASE HELP ON OBSCURE PROBLEM [OFFTOPIC]

2002-12-02 Thread Jeremy Joslin
Message- From: Jason Johnston [mailto:[EMAIL PROTECTED]] Sent: Monday, December 02, 2002 12:27 PM To: [EMAIL PROTECTED] Subject: RE: Socket GURU'S PLEASE HELP ON OBSCURE PROBLEM Thanks Jeremy. You're right in that I'm not correctly implementing HTTP, but I'm not sure that's my problem

RE: Socket GURU'S PLEASE HELP ON OBSCURE PROBLEM

2002-12-02 Thread Jason Johnston
Thanks again Jeremy! I was coming to that conclusion. I changed the condition to while(instream.available()0) and then added an instream.read() and it seems to be working. It turns out there's a lot more info on this problem in the forums than I realized. Thanks for you help. On a