java.net.SocketException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Disable keep-alive entirely in NanoHttpd?
    via Stack Overflow by jconder
    ,
    • java.net.SocketException: sendto failed: ECONNRESET (Connection reset by peer) at libcore.io.IoBridge.maybeThrowAfterSendto(IoBridge.java:546) at libcore.io.IoBridge.sendto(IoBridge.java:515) at java.net.PlainSocketImpl.write(PlainSocketImpl.java:504) at java.net.PlainSocketImpl.access$100(PlainSocketImpl.java:37) at java.net.PlainSocketImpl$PlainSocketOutputStream.write(PlainSocketImpl.java:266) at fi.iki.elonen.NanoHTTPD$Response.sendBody(NanoHTTPD.java:1620) at fi.iki.elonen.NanoHTTPD$Response.sendBodyWithCorrectEncoding(NanoHTTPD.java:1593) at fi.iki.elonen.NanoHTTPD$Response.sendBodyWithCorrectTransferAndEncoding(NanoHTTPD.java:1583) at fi.iki.elonen.NanoHTTPD$Response.send(NanoHTTPD.java:1550) at fi.iki.elonen.NanoHTTPD$HTTPSession.execute(NanoHTTPD.java:937) at fi.iki.elonen.NanoHTTPD$ClientHandler.run(NanoHTTPD.java:192) at java.lang.Thread.run(Thread.java:818) Caused by: android.system.ErrnoException: sendto failed: ECONNRESET (Connection reset by peer) at libcore.io.Posix.sendtoBytes(Native Method) at libcore.io.Posix.sendto(Posix.java:206) at libcore.io.BlockGuardOs.sendto(BlockGuardOs.java:278) at libcore.io.IoBridge.sendto(IoBridge.java:513) ... 10 more

    Users with the same issue

    0x60
    3 times, last one,
    jk
    4 times, last one,
    brunosatriani
    1 times, last one,
    xavilo
    2 times, last one,
    marcelojaf
    1 times, last one,
    22 more bugmates