Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7793567
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T22:31:46+00:00 2026-06-01T22:31:46+00:00

When a SocketException is encountered (or an IOException when your using BufferedReader for the

  • 0

When a SocketException is encountered (or an IOException when your using BufferedReader for the socket) at all, should the whole connection be considered bad?

I’m more or less wondering if there are any “non-fatal” exceptions that can occur when reading or writing to a socket, Exceptions that occur but the socket is still usable.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T22:31:48+00:00Added an answer on June 1, 2026 at 10:31 pm

    A compilation of the javadoc of the subclasses of SocketException shows that you can’t recover from such an exception and reuse the socket.

    • BindException
      Signals that an error occurred while attempting to bind a socket to a local address and port. Typically, the port is in use, or the requested local address could not be assigned.

    • ConnectException
      Signals that an error occurred while attempting to connect a socket to a remote address and port. Typically, the connection was refused remotely (e.g., no process is listening on the remote address/port).

    • NoRouteToHostException
      Signals that an error occurred while attempting to connect a socket to a remote address and port. Typically, the remote host cannot be reached because of an intervening firewall, or if an intermediate router is down.

    • PortUnreachableException
      Signals that an ICMP Port Unreachable message has been received on a connected datagram.

    SocketException itself: Thrown to indicate that there is an error in the underlying protocol, such as a TCP error.

    Therefore I would say yes, there is no way to continue, since TCP already tried to ensure to recover from tranmission problems.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

ClientAbortException: java.net.SocketException: Software caused connection abort: socket write error at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:358) at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:434) at
I get a SocketException: Bad file number whenever I try to use a BufferedReader
Given this stack trace snippet Caused by: java.net.SocketException: Software caused connection abort: socket write
Let's say I've programmed an application which connects to a server using the Socket
I have seen several questions regarding SocketException when using Android, but none of them
Sometimes it will be a SocketException: Stack trace: at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32
I have two functions ( ServerSocket.accept() and Socket.setSoTimeOut() ) which are throwing IOException and
Why doesn't Android throw a SocketException when the socket is closed? I get an
I'm trying to mock out the System.net.Sockets.Socket class in C# - I tried using
We are seeing frequent but intermittent java.net.SocketException: Connection reset errors in our logs. We

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.