Q: Connection reset by peer

HI,

I use logs report platform to record errors for my testing program. I find it catch a lot of `connection reset by peer’ error message. follow error occurred time, I inspect sg logs, find error as follow:

2019-06-07T20:01:24.697+08:00 [INF] SyncMsg: [7344bc] #5: Type:setCheckpoint Client:cp-QVCv4eNL/cwVlWeyH9E6PPH6NqU= Rev:0-2610 User:2997b1d5
> 2019-06-07T20:01:24.737+08:00 [INF] WS: [7344bc] Error: receiveLoop exiting with WebSocket error: read tcp 10.244.2.45:4984->10.244.1.0:52906: read: connection reset by peer
> 2019-06-07T20:01:24.738+08:00 [INF] WS: [7344bc] BLIP/Websocket Handler exited: read tcp 10.244.2.45:4984->10.244.1.0:52906: read: connection reset by peer
> 2019-06-07T20:01:24.738+08:00 [INF] HTTP: [7344bc] #10237: → BLIP+WebSocket connection error: read tcp 10.244.2.45:4984->10.244.1.0:52906: read: connection reset by peer
2019-06-07T20:01:24.738+08:00 [INF] Changes: MultiChangesFeed done (to 2997b1d5)
2019-06-07T20:01:24.998+08:00 [INF] HTTP: #10238: GET /kitchen/_blipsync (as GUEST)
2019-06-07T20:01:24.998+08:00 [INF] HTTP: #10238: → 401 Login required (1.1 ms)
2019-06-07T20:01:25.042+08:00 [INF] HTTP: #10239: GET /kitchen/_blipsync (as 2997b1d5)
2019-06-07T20:01:25.042+08:00 [INF] HTTP+: #10239: → 101 [5efcf3c7] Upgraded to BLIP+WebSocket protocol. User:2997b1d5. (0.0 ms)
2019-06-07T20:01:25.043+08:00 [INF] WS: [5efcf3c7] Start BLIP/Websocket handler
2019-06-07T20:01:25.087+08:00 [INF] SyncMsg: [5efcf3c7] #1: Type:getCheckpoint Client:cp-QVCv4eNL/cwVlWeyH9E6PPH6NqU= User:2997b1d5
2019-06-07T20:01:25.133+08:00 [INF] SyncMsg: [5efcf3c7] #2: Type:subChanges Since:0 Continuous:true Filter:sync_gateway/bychannel Channels:2997b1d5 User:2997b1d5
2019-06-07T20:01:25.133+08:00 [INF] Sync: [5efcf3c7] Sending changes since 0. User:2997b1d5
2019-06-07T20:01:25.133+08:00 [INF] Changes: MultiChangesFeed(channels: {2997b1d5}, options: {Since:0 Limit:0 Conflicts:false IncludeDocs:false Wait:true Continuous:true Terminator:0xc420fc6de0 HeartbeatMs:0 TimeoutMs:0 ActiveOnly:false}) … (to 2997b1d5)
2019-06-07T20:01:25.133+08:00 [INF] Cache: getCachedChanges(“2997b1d5”, 115063:0) → 50 changes valid from #195440
2019-06-07T20:01:25.133+08:00 [INF] Cache: Querying ‘channels’ view for “2997b1d5” (start=#1, end=#195440, limit=0)
2019-06-07T20:01:25.218+08:00 [INF] SyncMsg: [5efcf3c7] #3: Type:proposeChanges #Changes: 30 User:2997b1d5
2019-06-07T20:01:25.317+08:00 [INF] SyncMsg: [5efcf3c7] #4: Type:setCheckpoint Client:cp-QVCv4eNL/cwVlWeyH9E6PPH6NqU= Rev:0-2611 User:2997b1d5
2019-06-07T20:01:25.328+08:00 [INF] Cache: Got 6250 rows from query for “2997b1d5”: #115063#195440
2019-06-07T20:01:25.328+08:00 [INF] Cache: Added 50 entries from query (#195279#195439) to cache of “2997b1d5”
2019-06-07T20:01:25.328+08:00 [INF] Cache: GetChangesInChannel(“2997b1d5”) → 6299 rows
2019-06-07T20:01:25.328+08:00 [INF] Changes: sending 13 change(s)
2019-06-07T20:01:25.328+08:00 [INF] Changes: sending 8 change(s)
2019-06-07T20:01:25.328+08:00 [INF] Changes: sending 2 change(s)
2019-06-07T20:01:25.328+08:00 [INF] Changes: sending 2 change(s)
2019-06-07T20:01:25.328+08:00 [INF] Changes: sending 1 change(s)
2019-06-07T20:01:25.328+08:00 [INF] Changes: sending 2 change(s)
2019-06-07T20:01:25.328+08:00 [INF] Changes: sending 4 change(s)
2019-06-07T20:01:25.328+08:00 [INF] Changes: sending 4 change(s)
2019-06-07T20:01:25.328+08:00 [INF] Changes: sending 1 change(s)
2019-06-07T20:01:25.328+08:00 [INF] Changes: sending 2 change(s)
2019-06-07T20:01:25.328+08:00 [INF] Changes: sending 1 change(s)
2019-06-07T20:01:25.328+08:00 [INF] Changes: sending 1 change(s)
2019-06-07T20:01:25.328+08:00 [INF] Changes: sending 1 change(s)
2019-06-07T20:01:25.328+08:00 [INF] Changes: sending 1 change(s)

about have 10 pages of [INF] Changes: sending 1 change(s) message.

it’s seens the lite lost connection with sg. and then reconnect.
all devices using mobile 4G signle, I think the network is perfect.

my question is:

  1. why has error Connection reset by peer
  2. why when the lite reconnect immediately, still have too many document sending to sync?

thanks!

angular