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

Response not received #168

Open
kartikpatel211 opened this issue Sep 21, 2018 · 3 comments
Open

Response not received #168

kartikpatel211 opened this issue Sep 21, 2018 · 3 comments

Comments

@kartikpatel211
Copy link

In iOS mobile app, when mobile/cellular data and WiFi connections - both are Enabled and App tries to perform socket operation on WiFi connected device, app able to create connection and send data successfully but it does not able to receive response and throws exception: "The operation couldn’t be completed. (appName.SocketsError error 1.)"

@rayWille
Copy link

rayWille commented Oct 2, 2018

i faced the same issue.i was able send data on socket but not able receive data while cellular data was on.It seems to be bug.
Also i tried same scenarios with other libraries such as BlueSocket etc and it is working fine even if cellular data remains on.
Hope this bug shall be fixed soon.

@vzsg
Copy link
Member

vzsg commented Oct 2, 2018

It's a well-known limitation of the POSIX networking on iOS that it cannot enable cellular radio by itself, unlike CoreFoundation streams and other higher-level networking frameworks. Therefore, you shouldn't rely on this package on iOS.


That being said, I have some more bad news. This repo is abandonware, as Vapor 3 replaced the homebrew networking with SwiftNIO, and Vapor 2 is not maintained anymore. I suggest looking for alternatives.

@rayWille
Copy link

rayWille commented Oct 3, 2018

Thanks @vzsg for info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants