Bookmark Topic Watch Topic
  • New Topic

Exception invalid stream header: 74000346

 
Ricardo Prado
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hello people.

Well, I'm having a problem ( http://www.coderanch.com/t/512605/Servlets/java/Why-servlet-not-answering-when ) and the way that I've found to solve it is a little bit (a lot actually) bizarre.

To keep my connection alive, I'm sending a message every 0.5 seconds to the servlet to stop him from closing the connection. (IF YOU KNOW HOW TO CONFIGURE HOW LONG AN APPLICATION WAITS FOR AN HTTP ANSWER, PLEASE TELL ME SO I DON'T HAVE TO MAKE THIS EXTREMELY BIZARRE SOLUTION!)

The problem is that I'm getting an invalid stream header. I think that I'm writing two things at the same time(messing up my object).

Well, I'll post my code here, please don't try to kill me. I would LOVE to hear constructive critics(is that right? I want to mean is "I know that it is bizarre, but when you comply please tell me how to make it better")

Thanks!

 
Joe Ess
Bartender
Posts: 9361
11
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Report post to moderator
Let's keep the discussion in one topic. I'm locking this one.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!