@mega-yfue/eufy-sdk 0.5.0-beta.5 → 0.5.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -15699,8 +15699,8 @@ var P2PSession = class _P2PSession extends EventEmitter2 {
|
|
|
15699
15699
|
return this.connected;
|
|
15700
15700
|
}
|
|
15701
15701
|
/**
|
|
15702
|
-
* Ask the OS for {@link RECEIVE_BUFFER_BYTES} on a bound socket, and
|
|
15703
|
-
* less or refuses.
|
|
15702
|
+
* Ask the OS for {@link RECEIVE_BUFFER_BYTES} on a bound socket, and log once per session when it grants
|
|
15703
|
+
* less (debug) or refuses (warn).
|
|
15704
15704
|
*
|
|
15705
15705
|
* The request is made here rather than through `createSocket`'s `recvBufferSize`: Node applies that option
|
|
15706
15706
|
* inside the bind callback, where a refusal is thrown out of reach of this session and ends the process.
|
|
@@ -15716,7 +15716,8 @@ var P2PSession = class _P2PSession extends EventEmitter2 {
|
|
|
15716
15716
|
if (granted >= RECEIVE_BUFFER_BYTES || this.receiveBufferReported)
|
|
15717
15717
|
return;
|
|
15718
15718
|
this.receiveBufferReported = true;
|
|
15719
|
-
|
|
15719
|
+
const [level, outcome] = granted > 0 ? ["debug", ` (granted ${granted})`] : ["warn", " (request refused)"];
|
|
15720
|
+
this.logger[level](`[p2p] ${this.cfg.stationSn} UDP receive buffer below the ${RECEIVE_BUFFER_BYTES} bytes requested` + outcome + `; live video can lose keyframes. Raise the OS limit (net.core.rmem_max on Linux, kern.ipc.maxsockbuf on BSD) to at least ${RECEIVE_BUFFER_BYTES}.`);
|
|
15720
15721
|
}
|
|
15721
15722
|
/** Open the socket and start the lookup → hole-punch handshake. */
|
|
15722
15723
|
async connect() {
|