Replicator pull continous stop after network error in couchbase lite 2.8.x android

@blake.meike

This I know is separate issue.
I gave logs for both in 1 file.

And from 2.8.X I am seeing the same behaviour till 3.0.0. And the logs in middle of it, As shown below makes the app go offline and it doesn’t come up until the network is switched once. Even when the device can reach out to sync gateway without network switch. So this makes app not usable and end user don’t know if its network or something else.

2022-04-07 18:45:03.181 1961-2276/com.decurtis.dxp.aci E/CouchbaseLite/NETWORK: {N8litecore4repl12C4SocketImplE#230} WebSocket closed abnormally (reason=WebSocket/HTTP status 1008)
2022-04-07 18:45:03.188 1961-2107/com.decurtis.dxp.aci E/CouchbaseLite/REPLICATOR: {Repl#229} Got LiteCore error: WebSocket error 1008, "java.net.SocketTimeoutException: sent ping but didn't receive pong within 20000ms (after 114 successful ping/pongs)"
2022-04-07 18:45:03.191 1961-2107/com.decurtis.dxp.aci E/CouchbaseLite/REPLICATOR: {C4Replicator#225} State: busy, progress=99.94%, error=WebSocket error 1008, "java.net.SocketTimeoutException: sent ping but didn't receive pong within 20000ms (after 114 successful ping/pongs)"
2022-04-07 18:45:03.209 1961-2107/com.decurtis.dxp.aci E/CouchbaseLite/REPLICATOR: {C4Replicator#225} State: stopped, progress=99.94%, error=WebSocket error 1008, "java.net.SocketTimeoutException: sent ping but didn't receive pong within 20000ms (after 114 successful ping/pongs)"
2022-04-07 18:45:18.245 1961-2114/com.decurtis.dxp.aci E/CouchbaseLite/NETWORK: {N8litecore4repl12C4SocketImplE#1849} No response received after 15 sec -- disconnecting
2022-04-07 18:45:18.247 1961-2114/com.decurtis.dxp.aci E/CouchbaseLite/NETWORK: {N8litecore4repl12C4SocketImplE#1849} WebSocket failed to connect! (reason=Network error 3)
2022-04-07 18:45:18.250 1961-2109/com.decurtis.dxp.aci E/CouchbaseLite/REPLICATOR: {Repl#1848} Got LiteCore error: Network error 3, "connection timed out"
2022-04-07 18:45:18.252 1961-2109/com.decurtis.dxp.aci E/CouchbaseLite/REPLICATOR: {C4Replicator#1844} State: connecting, progress=0.00%, error=Network error 3, "connection timed out"
2022-04-07 18:45:18.261 1961-2109/com.decurtis.dxp.aci E/CouchbaseLite/REPLICATOR: {C4Replicator#1844} Transient error (Network error 3, "connection timed out"); attempt #2 in 2 sec...
2022-04-07 18:45:18.264 1961-2109/com.decurtis.dxp.aci E/CouchbaseLite/REPLICATOR: {C4Replicator#1844} State: offline, progress=0.00%, error=Network error 3, "connection timed out"
2022-04-07 18:48:08.143 1961-3990/com.decurtis.dxp.aci E/CouchbaseLite/NETWORK: {N8litecore4repl12C4SocketImplE#1856} WebSocket closed abnormally (reason=WebSocket/HTTP status 1008)
2022-04-07 18:48:08.154 1961-2110/com.decurtis.dxp.aci E/CouchbaseLite/REPLICATOR: {Repl#1855} Got LiteCore error: WebSocket error 1008, "java.net.SocketTimeoutException: sent ping but didn't receive pong within 20000ms (after 6 successful ping/pongs)"
2022-04-07 18:48:08.164 1961-2110/com.decurtis.dxp.aci E/CouchbaseLite/REPLICATOR: {C4Replicator#1844} State: busy, progress=99.80%, error=WebSocket error 1008, "java.net.SocketTimeoutException: sent ping but didn't receive pong within 20000ms (after 6 successful ping/pongs)"
2022-04-07 18:48:08.430 1961-2106/com.decurtis.dxp.aci E/CouchbaseLite/REPLICATOR: {C4Replicator#1844} State: stopped, progress=99.80%, error=WebSocket error 1008, "java.net.SocketTimeoutException: sent ping but didn't receive pong within 20000ms (after 6 successful ping/pongs)"
2022-04-07 18:59:34.144 1961-2121/com.decurtis.dxp.aci E/CouchbaseLite/NETWORK: {N8litecore4repl12C4SocketImplE#18} WebSocket closed abnormally (reason=WebSocket/HTTP status 1015)
2022-04-07 18:59:34.147 1961-2109/com.decurtis.dxp.aci E/CouchbaseLite/REPLICATOR: {Repl#17} Got LiteCore error: WebSocket error 1015, "javax.net.ssl.SSLException: Read error: ssl=0xc659ca48: I/O error during system call, Software caused connection abort"
2022-04-07 18:59:34.148 1961-3987/com.decurtis.dxp.aci E/CouchbaseLite/NETWORK: {N8litecore4repl12C4SocketImplE#1879} WebSocket closed abnormally (reason=WebSocket/HTTP status 1015)
2022-04-07 18:59:34.151 1961-2109/com.decurtis.dxp.aci E/CouchbaseLite/REPLICATOR: {C4Replicator#13} State: stopped, progress=100.00%, error=WebSocket error 1015, "javax.net.ssl.SSLException: Read error: ssl=0xc659ca48: I/O error during system call, Software caused connection abort"
2022-04-07 18:59:34.157 1961-2106/com.decurtis.dxp.aci E/CouchbaseLite/REPLICATOR: {Repl#1878} Got LiteCore error: WebSocket error 1015, "javax.net.ssl.SSLException: Read error: ssl=0xdbda83e8: I/O error during system call, Software caused connection abort"
2022-04-07 18:59:34.159 1961-2106/com.decurtis.dxp.aci E/CouchbaseLite/REPLICATOR: {C4Replicator#1874} State: busy, progress=99.91%, error=WebSocket error 1015, "javax.net.ssl.SSLException: Read error: ssl=0xdbda83e8: I/O error during system call, Software caused connection abort"
2022-04-07 18:59:34.168 1961-2106/com.decurtis.dxp.aci E/CouchbaseLite/REPLICATOR: {C4Replicator#1874} State: stopped, progress=99.91%, error=WebSocket error 1015, "javax.net.ssl.SSLException: Read error: ssl=0xdbda83e8: I/O error during system call, Software caused connection abort"
2022-04-07 19:00:16.880 1961-2114/com.decurtis.dxp.aci E/CouchbaseLite/NETWORK: {N8litecore4repl12C4SocketImplE#2218} No response received after 15 sec -- disconnecting
2022-04-07 19:00:16.884 1961-2114/com.decurtis.dxp.aci E/CouchbaseLite/NETWORK: {N8litecore4repl12C4SocketImplE#2218} WebSocket failed to connect! (reason=Network error 3)
2022-04-07 19:00:16.888 1961-2111/com.decurtis.dxp.aci E/CouchbaseLite/REPLICATOR: {Repl#2217} Got LiteCore error: Network error 3, "connection timed out"
2022-04-07 19:00:16.891 1961-2111/com.decurtis.dxp.aci E/CouchbaseLite/REPLICATOR: {C4Replicator#2213} State: connecting, progress=0.00%, error=Network error 3, "connection timed out"
2022-04-07 19:00:16.893 1961-2114/com.decurtis.dxp.aci E/CouchbaseLite/NETWORK: {N8litecore4repl12C4SocketImplE#2224} No response received after 15 sec -- disconnecting
2022-04-07 19:00:16.897 1961-2114/com.decurtis.dxp.aci E/CouchbaseLite/NETWORK: {N8litecore4repl12C4SocketImplE#2224} WebSocket failed to connect! (reason=Network error 3)
2022-04-07 19:00:16.902 1961-2109/com.decurtis.dxp.aci E/CouchbaseLite/REPLICATOR: {Repl#2223} Got LiteCore error: Network error 3, "connection timed out"
2022-04-07 19:00:16.904 1961-2109/com.decurtis.dxp.aci E/CouchbaseLite/REPLICATOR: {C4Replicator#2219} State: connecting, progress=0.00%, error=Network error 3, "connection timed out"
2022-04-07 19:00:16.906 1961-2111/com.decurtis.dxp.aci E/CouchbaseLite/REPLICATOR: {C4Replicator#2213} Transient error (Network error 3, "connection timed out"); attempt #2 in 2 sec...
2022-04-07 19:00:16.908 1961-2111/com.decurtis.dxp.aci E/CouchbaseLite/REPLICATOR: {C4Replicator#2213} State: offline, progress=0.00%, error=Network error 3, "connection timed out"
2022-04-07 19:00:16.917 1961-2109/com.decurtis.dxp.aci E/CouchbaseLite/REPLICATOR: {C4Replicator#2219} Transient error (Network error 3, "connection timed out"); attempt #2 in 2 sec...
2022-04-07 19:00:16.919 1961-2109/com.decurtis.dxp.aci E/CouchbaseLite/REPLICATOR: {C4Replicator#2219} State: offline, progress=0.00%, error=Network error 3, "connection timed out"

This I know is separate issue.

If you know that, then please open a separate thread. Please do not hijack a thread about one issue, to discuss something completely different.

The issue you point out in the log you included in your last message is addressed in CBL-2998 and fixed in release 3.0.2