Skip to content

java.net.SocketException: sendto failed: EPIPE (Broken pipe) #37

@martin-p2sol

Description

@martin-p2sol

We are seeing random, but frequent, socket exceptions when upgrading our lib from 1.2 to 1.3. This issue is being observed on ICS, but doesn't happen on Gingerbread. Also, as stated, we don't get this problem in version 1.2 of the library.

Observed on:
Verizon HTC Rezound
Android Version: 4.0.3
HTC Sense Version: 3.6

Stack trace:
W/System.err(14248): java.net.SocketException: sendto failed: EPIPE (Broken pipe)
W/System.err(14248): at libcore.io.IoBridge.maybeThrowAfterSendto(IoBridge.java:496)
W/System.err(14248): at libcore.io.IoBridge.sendto(IoBridge.java:465)
W/System.err(14248): at java.net.PlainSocketImpl.write(PlainSocketImpl.java:507)
W/System.err(14248): at java.net.PlainSocketImpl.access$100(PlainSocketImpl.java:46)
W/System.err(14248): at java.net.PlainSocketImpl$PlainSocketOutputStream.write(PlainSocketImpl.java:269)
W/System.err(14248): at java.io.BufferedOutputStream.flushInternal(BufferedOutputStream.java:185)
W/System.err(14248): at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:85)
W/System.err(14248): at com.integralblue.httpresponsecache.compat.libcore.net.http.FixedLengthOutputStream.flush(FixedLengthOutputStream.java:48)
W/System.err(14248): at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:86)
W/System.err(14248): at java.io.FilterOutputStream.close(FilterOutputStream.java:61)
W/System.err(14248): at java.io.BufferedOutputStream.close(BufferedOutputStream.java:152)
-- SNIP --
W/System.err(14248): Caused by: libcore.io.ErrnoException: sendto failed: EPIPE (Broken pipe)
W/System.err(14248): at libcore.io.Posix.sendtoBytes(Native Method)
W/System.err(14248): at libcore.io.Posix.sendto(Posix.java:146)
W/System.err(14248): at libcore.io.BlockGuardOs.sendto(BlockGuardOs.java:177)
W/System.err(14248): at libcore.io.IoBridge.sendto(IoBridge.java:463)
W/System.err(14248): ... 23 more

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions