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

Socket connection warnings on iOS when in background #2508

Open
leblowl opened this issue May 6, 2024 · 0 comments
Open

Socket connection warnings on iOS when in background #2508

leblowl opened this issue May 6, 2024 · 0 comments

Comments

@leblowl
Copy link
Collaborator

leblowl commented May 6, 2024

When the app goes to the background on iOS, we receive these warnings that fill up the logs:

nw_socket_handle_socket_event [C22:2] Socket SO_ERROR [61: Connection refused]
Connection 22: received failure notification
Connection 22: failed to connect 1:61, reason -1
Connection 22: encountered error(1:61)
nw_connection_copy_connected_local_endpoint_block_invoke [C22] Client called nw_connection_copy_connected_local_endpoint on unconnected nw_connection
nw_connection_copy_connected_remote_endpoint_block_invoke [C22] Client called nw_connection_copy_connected_remote_endpoint on unconnected nw_connection
Task <75C2CE6B-DD3B-4D35-8294-6FBA9E754B6B>.<34> HTTP load failed, 0/0 bytes (error code: -1004 [1:61])
Task <75C2CE6B-DD3B-4D35-8294-6FBA9E754B6B>.<34> finished with error [-1004] Error Domain=NSURLErrorDomain Code=-1004 "Could not connect to the server." UserInfo={_kCFStreamErrorCodeKey=61, NSUnderlyingError=0x300ca7a20 {Error Domain=kCFErrorDomainCFNetwork Code=-1004 "(null)" UserInfo={_NSURLErrorNWPathKey=satisfied (Path is satisfied), viable, interface: lo0, _kCFStreamErrorCodeKey=61, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <75C2CE6B-DD3B-4D35-8294-6FBA9E754B6B>.<34>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <75C2CE6B-DD3B-4D35-8294-6FBA9E754B6B>.<34>"
), NSLocalizedDescription=Could not connect to the server., NSErrorFailingURLStringKey=http://127.0.0.1:11000/socket.io/?EIO=4&transport=polling&t=OzF7QOY, NSErrorFailingURLKey=http://127.0.0.1:11000/socket.io/?EIO=4&transport=polling&t=OzF7QOY, _kCFStreamErrorDomainKey=1}
0x114034300 - ProcessThrottlerTimedActivity::activityTimedOut:

and it appears to retry continuously. We close the connections between the backend and frontend when going to the background, so I'm not sure what connection it's referring to and why it's retrying.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog - Mobile
Development

No branches or pull requests

1 participant