[p2p]seeing Network ERROR :Unexpected or unclean socket disconnect! , when server is disconnected
Description
Attached the logs for ios p2p 1. .8.4-ios 2. Created the docs in CBL1 3. Start the message end point listener pull-push-continuous 4. Make sure Listener is connected to CBL2 5. Now disconnect the wifi on CBL2(device)
Actual Result: Seeing the CBL1 app is closing (Network ERROR: {C4SocketImpl#6} Unexpected or unclean socket disconnect! ) Expected Result:
Replicator should connect again once CBL2's wifi is back
Manual Test: No automation is available for this usecase
Current not able to verify, seeing replicator connection issues
Jay Vavachan May 13, 2021 at 4:55 PM
Fixed the crash!
Jay Vavachan May 12, 2021 at 1:40 PM
Edited
Crash was happening when c4error message returned is empty, which should be handled in platform side. Created the PR to handle the crash, but when the wifi is turned OFF it returns 4002(permanent error) from the other side which will cause the test to fail.
Jim Borden March 9, 2021 at 10:00 PM
This is an Objective-C crash so I will have look at it.
Fixed
Pinned fields
Click on the next to a field label to start pinning.
Attached the logs for ios p2p
1. .8.4-ios
2. Created the docs in CBL1
3. Start the message end point listener pull-push-continuous
4. Make sure Listener is connected to CBL2
5. Now disconnect the wifi on CBL2(device)
Actual Result: Seeing the CBL1 app is closing (Network ERROR: {C4SocketImpl#6} Unexpected or unclean socket disconnect! )
Expected Result:
Replicator should connect again once CBL2's wifi is back
Manual Test: No automation is available for this usecase