[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

Attachments

1

Activity

Jay Vavachan June 5, 2021 at 1:14 PM

For p2p, when the other side get disconnects, replicator will not retry and considers as permanent error. We already discussed about this here https://couchbasecloud.atlassian.net/browse/CBL-1812.

Manasa Ghanta May 26, 2021 at 4:30 PM

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.

Details

Assignee

Reporter

Story Points

Components

Sprint

Fix versions

Affects versions

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created March 8, 2021 at 11:19 PM
Updated September 20, 2021 at 5:29 PM
Resolved May 13, 2021 at 4:55 PM
Instabug