Reconnect Android VPN WebSocket after send rejection
This commit is contained in:
@@ -139,6 +139,12 @@ final class VpnPacketWebSocketRelay {
|
||||
boolean queued = socket.send(ByteString.of(payload));
|
||||
if (!queued) {
|
||||
lastError = "websocket send queue rejected batch";
|
||||
synchronized (lock) {
|
||||
if (socket == webSocket) {
|
||||
reconnectAfterMs = 0;
|
||||
closeLocked();
|
||||
}
|
||||
}
|
||||
}
|
||||
return queued;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user