Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sendto failed: EPIPE (Broken pipe) #6

Closed
kalyani30 opened this issue Aug 27, 2014 · 7 comments
Closed

sendto failed: EPIPE (Broken pipe) #6

kalyani30 opened this issue Aug 27, 2014 · 7 comments
Milestone

Comments

@kalyani30
Copy link

hello,
I implemented your library in my project and it works great for small pics...

but most of the time when i try to upload big images ,i am getting following exception
java.net.SocketException: sendto failed: EPIPE (Broken pipe)...

Or some times it's just displaying error notification...
can you please suggest me??

@alexbbb
Copy link
Contributor

alexbbb commented Aug 28, 2014

What are you using on your server side?

@cheneygan
Copy link

this maybe because you have used inputstream. and the close sequence not correct. You may first close inputstream ,then close the outputstream,this cause EPIPE (Broken pipe) error。
if u close inputstream befor outputstream,that is ok.

@alexbbb
Copy link
Contributor

alexbbb commented Sep 4, 2014

The code that handles file upload is here: https://github.com/alexbbb/android-upload-service/blob/master/src/com/alexbbb/uploadservice/UploadService.java#L139

The "broken pipe" happens when you try to write to a connection that has already been closed by the peer. Never experienced such an issue. Check if you're trying to upload bigger size data than the maximum allowed by your server per each request.

@alexbbb
Copy link
Contributor

alexbbb commented Sep 19, 2014

Closing the issue due to unreproducible condition that leads to the error and lack of feedback

@alexbbb alexbbb closed this as completed Sep 19, 2014
@gStanev
Copy link

gStanev commented Nov 25, 2014

I faced same issue.It happens only when i'm connected through mobile internet (over WiFi is working pretty good). First file that i uploaded is ok but with the second one i got same error "sendto failed: EPIPE (Broken pipe)".

@alexbbb alexbbb modified the milestone: 1.x Jul 17, 2015
@SilvestreRamirez
Copy link

someone found a solution?

@gotev
Copy link
Owner

gotev commented Oct 24, 2020

@SilvestreRamirez yes, check this and this

Repository owner locked and limited conversation to collaborators Oct 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants