Socket is closed

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.

It's possible you're trying to write to a connection that's already closed. Another cause for this is that you closed the socket with unread data in the socket receive buffer.


This might be caused by unmatching versions of SSL. Java starts normally with SSLv2 and your server might not be able to negotiate. You have to force Java to use SSLv3. See this comment:


You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • Socket.shutdownOutput() closes socket inside JVM
    via by Marcus Rangel,
  • [groovy-user] Using Slide . . .
    via by Russel Winder,
  • tomcat not responding.
    via by gudala kumar,
  • Strange Exception
    via GitHub by dfarina
  • pgpool Bug Tracker
    via by Unknown author,
    • Socket is closed at Method) at at at kiman.socktest.test(socktest:76)

    Users with the same issue

    ivanszkypeter40 times, last one,
    linxiaolong2 times, last one,
    Unknown visitor1 times, last one,
    tvrmsmith1 times, last one,
    Михайло Тітов
    Михайло Тітов1 times, last one,
    235 more bugmates