YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.upnp.server.http.ClientDisconnects Class Reference

Tells whether an exception of the HTTP server only means that the client hung up while the server was reading or writing: a control point that gives up (its own timeout, the user left the screen, the app was closed) closes the socket and the next write fails with Broken pipe or Connection reset
by peer
. More...

Collaboration diagram for de.yaacc.upnp.server.http.ClientDisconnects:
Collaboration graph

Static Public Member Functions

static boolean isClientDisconnect (Throwable error)
 

Detailed Description

Tells whether an exception of the HTTP server only means that the client hung up while the server was reading or writing: a control point that gives up (its own timeout, the user left the screen, the app was closed) closes the socket and the next write fails with Broken pipe or Connection reset
by peer
.

That is normal and not worth an error with a stack trace.

Member Function Documentation

◆ isClientDisconnect()

static boolean de.yaacc.upnp.server.http.ClientDisconnects.isClientDisconnect ( Throwable error)
static
Returns
true if the exception, or one of its causes, is an IOException whose message says that the peer closed or reset the connection. Other exceptions, and exceptions without a message, are not.

The documentation for this class was generated from the following file: