• Post Reply Bookmark Topic Watch Topic
  • New Topic

Blocking Socket : Difference between Win NT and Unix ?  RSS feed

Vlad Ator
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I use a BufferedInputStream to get a String through Socket. Sometimes, the String that i receive is not complete. Since i use the method "available" one explained me in another post that's probably because in the last part of the inputstream, there is something that would block the socket, so the
BufferedInputStream doesn't read anymore the inputstream.
I have no clue waht could block the socket, i don't find any doc about that.
But more strange, when i run exactly the same code, on Win NT4 and UNIX, the behaviour is quite different. Witn NT, i have about 1 bad answer on 1500. With Unix, i get about 500 on 1000 !
What can be the reason ???
For info, my code is running inside Weblogic 6.1, but even if i write a single class, the problem is the same.
Thanks for your help,
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!