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

Frequent Socket Error -2 on Android #2441

Open
bemasc opened this issue May 23, 2016 · 1 comment
Open

Frequent Socket Error -2 on Android #2441

bemasc opened this issue May 23, 2016 · 1 comment
Labels

Comments

@bemasc
Copy link
Contributor

bemasc commented May 23, 2016

On Android, we frequently see error messages like

tcp [2016-05-23T16:44:50.945Z] N370.A375: onDisconnect: {"errcode":"UNKNOWN","message":"Socket Error: -2: FAILED"}

I have traced this to an onReceiveError event with the message "Socket closed by remote peer".

I think this is explained by a bug in the Cordova Chrome Apps implementation of the chrome.sockets.tcp API, which should return an error code -100 in this situation, but instead returns -2.

@bemasc bemasc self-assigned this May 23, 2016
@bemasc
Copy link
Contributor Author

bemasc commented May 23, 2016

@ghost ghost added P2 Bug and removed C:SOCKS P1 labels Nov 8, 2016
@ghost ghost unassigned bemasc Nov 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant