• Post Reply Bookmark Topic Watch Topic
  • New Topic

broken pipe

 
manivijay anand
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
friends,
read a pdf file from server i use file input stream at the time i got broken pipe error
please advice how i resolve it
thanks
regards,
vijayanand
 
Shubhrajit Chatterjee
Ranch Hand
Posts: 356
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by manivijay anand:
friends,
read a pdf file from server i use file input stream at the time i got broken pipe error
please advice how i resolve it
thanks
regards,
vijayanand

Broken pipe is not an error. It is an exception. It happens when you try to write to a socket when the other side of it has been closed. Your code should handle this exception gracefully, as in a distributed environment you cannot be sure that the socket will remain open whenever you are trying to write data to it. However, if you still feel that this exception should not have occured then you check your code.

------------------
Shubhrajit
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!