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

Broken pipe error #377

Open
megakode opened this issue Mar 28, 2019 · 2 comments
Open

Broken pipe error #377

megakode opened this issue Mar 28, 2019 · 2 comments
Labels
need-investigation Defines an issue that needs to be verified

Comments

@megakode
Copy link

megakode commented Mar 28, 2019

Symptom:
On some iOS devices i get a HTTP 200 as if everything is ok when sharing a directory, but an empty response is returned.

Digging deeper i found that sendFileImpl(...) (in Socket+File.swift) returns -1 after calling write(...) and the posix ERRNO is set to "Broken Pipe".

When trying to read the same file directly from Swift using the FileManager everything is ok, so no missing file or permission should be the cause.

Work perfectly on:
iPhone X @ iOS 12.1.4
iPhone XS @ iOS 12.1.1

Always returns error on:
iPad Mini 2 @ iOS 10.0.1
iPad Mini 2 @ iOS 11.0
iPad Mini 4 @ iOS 12.2

@Vkt0r Vkt0r added the need-investigation Defines an issue that needs to be verified label Mar 31, 2019
@Vkt0r
Copy link
Member

Vkt0r commented Mar 31, 2019

Hey, @megakode Thanks for reporting this. Can you please run the SwifterSampleiOS in your iPad Mini x @ iOS x.x to see the result there when the route/files/:path is requested? Unfortunately, I don't have that specific device to run it myself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need-investigation Defines an issue that needs to be verified
Projects
None yet
Development

No branches or pull requests

3 participants
@Vkt0r @megakode and others