libp2p 0.46.19-fb8a6f188 → 0.46.19
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.min.js +22 -22
- package/dist/src/components.d.ts +1 -3
- package/dist/src/components.d.ts.map +1 -1
- package/dist/src/components.js +0 -4
- package/dist/src/components.js.map +1 -1
- package/dist/src/connection/index.d.ts +1 -3
- package/dist/src/connection/index.d.ts.map +1 -1
- package/dist/src/connection/index.js +9 -9
- package/dist/src/connection/index.js.map +1 -1
- package/dist/src/connection-manager/auto-dial.d.ts +1 -3
- package/dist/src/connection-manager/auto-dial.d.ts.map +1 -1
- package/dist/src/connection-manager/auto-dial.js +20 -20
- package/dist/src/connection-manager/auto-dial.js.map +1 -1
- package/dist/src/connection-manager/connection-pruner.d.ts +1 -3
- package/dist/src/connection-manager/connection-pruner.d.ts.map +1 -1
- package/dist/src/connection-manager/connection-pruner.js +8 -8
- package/dist/src/connection-manager/connection-pruner.js.map +1 -1
- package/dist/src/connection-manager/dial-queue.d.ts +1 -3
- package/dist/src/connection-manager/dial-queue.d.ts.map +1 -1
- package/dist/src/connection-manager/dial-queue.js +23 -26
- package/dist/src/connection-manager/dial-queue.js.map +1 -1
- package/dist/src/connection-manager/index.d.ts +1 -3
- package/dist/src/connection-manager/index.d.ts.map +1 -1
- package/dist/src/connection-manager/index.js +18 -21
- package/dist/src/connection-manager/index.js.map +1 -1
- package/dist/src/connection-manager/utils.d.ts +1 -2
- package/dist/src/connection-manager/utils.d.ts.map +1 -1
- package/dist/src/connection-manager/utils.js +4 -2
- package/dist/src/connection-manager/utils.js.map +1 -1
- package/dist/src/identify/consts.d.ts +1 -1
- package/dist/src/identify/consts.d.ts.map +1 -1
- package/dist/src/identify/identify.d.ts.map +1 -1
- package/dist/src/identify/identify.js +20 -20
- package/dist/src/identify/identify.js.map +1 -1
- package/dist/src/identify/index.d.ts +1 -2
- package/dist/src/identify/index.d.ts.map +1 -1
- package/dist/src/identify/index.js.map +1 -1
- package/dist/src/index.d.ts +1 -21
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/libp2p.d.ts +1 -2
- package/dist/src/libp2p.d.ts.map +1 -1
- package/dist/src/libp2p.js +16 -20
- package/dist/src/libp2p.js.map +1 -1
- package/dist/src/upgrader.d.ts +1 -3
- package/dist/src/upgrader.d.ts.map +1 -1
- package/dist/src/upgrader.js +29 -30
- package/dist/src/upgrader.js.map +1 -1
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.d.ts.map +1 -1
- package/dist/src/version.js +1 -1
- package/dist/src/version.js.map +1 -1
- package/dist/typedoc-urls.json +71 -0
- package/package.json +21 -21
- package/src/components.ts +1 -8
- package/src/connection/index.ts +11 -12
- package/src/connection-manager/auto-dial.ts +22 -22
- package/src/connection-manager/connection-pruner.ts +10 -10
- package/src/connection-manager/dial-queue.ts +25 -28
- package/src/connection-manager/index.ts +20 -23
- package/src/connection-manager/utils.ts +7 -5
- package/src/identify/identify.ts +22 -21
- package/src/identify/index.ts +1 -2
- package/src/index.ts +1 -22
- package/src/libp2p.ts +18 -21
- package/src/upgrader.ts +31 -32
- package/src/version.ts +1 -1
package/dist/src/upgrader.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { CodeError } from '@libp2p/interface/errors';
|
|
2
2
|
import { setMaxListeners } from '@libp2p/interface/events';
|
|
3
|
+
import { logger } from '@libp2p/logger';
|
|
3
4
|
import * as mss from '@libp2p/multistream-select';
|
|
4
5
|
import { peerIdFromString } from '@libp2p/peer-id';
|
|
5
6
|
import { createConnection } from './connection/index.js';
|
|
6
7
|
import { INBOUND_UPGRADE_TIMEOUT } from './connection-manager/constants.js';
|
|
7
8
|
import { codes } from './errors.js';
|
|
8
9
|
import { DEFAULT_MAX_INBOUND_STREAMS, DEFAULT_MAX_OUTBOUND_STREAMS } from './registrar.js';
|
|
10
|
+
const log = logger('libp2p:upgrader');
|
|
9
11
|
function findIncomingStreamLimit(protocol, registrar) {
|
|
10
12
|
try {
|
|
11
13
|
const { options } = registrar.getHandler(protocol);
|
|
@@ -47,11 +49,9 @@ export class DefaultUpgrader {
|
|
|
47
49
|
muxers;
|
|
48
50
|
inboundUpgradeTimeout;
|
|
49
51
|
events;
|
|
50
|
-
#log;
|
|
51
52
|
constructor(components, init) {
|
|
52
53
|
this.components = components;
|
|
53
54
|
this.connectionEncryption = new Map();
|
|
54
|
-
this.#log = components.logger.forComponent('libp2p:upgrader');
|
|
55
55
|
init.connectionEncryption.forEach(encrypter => {
|
|
56
56
|
this.connectionEncryption.set(encrypter.protocol, encrypter);
|
|
57
57
|
});
|
|
@@ -94,13 +94,13 @@ export class DefaultUpgrader {
|
|
|
94
94
|
throw new CodeError('The multiaddr connection is blocked by gater.acceptConnection', codes.ERR_CONNECTION_INTERCEPTED);
|
|
95
95
|
}
|
|
96
96
|
this.components.metrics?.trackMultiaddrConnection(maConn);
|
|
97
|
-
|
|
97
|
+
log('starting the inbound connection upgrade');
|
|
98
98
|
// Protect
|
|
99
99
|
let protectedConn = maConn;
|
|
100
100
|
if (opts?.skipProtection !== true) {
|
|
101
101
|
const protector = this.components.connectionProtector;
|
|
102
102
|
if (protector != null) {
|
|
103
|
-
|
|
103
|
+
log('protecting the inbound connection');
|
|
104
104
|
protectedConn = await protector.protect(maConn);
|
|
105
105
|
}
|
|
106
106
|
}
|
|
@@ -143,11 +143,11 @@ export class DefaultUpgrader {
|
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
145
|
catch (err) {
|
|
146
|
-
|
|
146
|
+
log.error('Failed to upgrade inbound connection', err);
|
|
147
147
|
throw err;
|
|
148
148
|
}
|
|
149
149
|
await this.shouldBlockConnection(remotePeer, maConn, 'denyInboundUpgradedConnection');
|
|
150
|
-
|
|
150
|
+
log('Successfully upgraded inbound connection');
|
|
151
151
|
return this._createConnection({
|
|
152
152
|
cryptoProtocol,
|
|
153
153
|
direction: 'inbound',
|
|
@@ -179,7 +179,7 @@ export class DefaultUpgrader {
|
|
|
179
179
|
let cryptoProtocol;
|
|
180
180
|
let muxerFactory;
|
|
181
181
|
this.components.metrics?.trackMultiaddrConnection(maConn);
|
|
182
|
-
|
|
182
|
+
log('Starting the outbound connection upgrade');
|
|
183
183
|
// If the transport natively supports encryption, skip connection
|
|
184
184
|
// protector and encryption
|
|
185
185
|
// Protect
|
|
@@ -227,12 +227,12 @@ export class DefaultUpgrader {
|
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
229
|
catch (err) {
|
|
230
|
-
|
|
230
|
+
log.error('Failed to upgrade outbound connection', err);
|
|
231
231
|
await maConn.close(err);
|
|
232
232
|
throw err;
|
|
233
233
|
}
|
|
234
234
|
await this.shouldBlockConnection(remotePeer, maConn, 'denyOutboundUpgradedConnection');
|
|
235
|
-
|
|
235
|
+
log('Successfully upgraded outbound connection');
|
|
236
236
|
return this._createConnection({
|
|
237
237
|
cryptoProtocol,
|
|
238
238
|
direction: 'outbound',
|
|
@@ -264,7 +264,7 @@ export class DefaultUpgrader {
|
|
|
264
264
|
.then(async () => {
|
|
265
265
|
const protocols = this.components.registrar.getProtocols();
|
|
266
266
|
const { stream, protocol } = await mss.handle(muxedStream, protocols);
|
|
267
|
-
|
|
267
|
+
log('%s: incoming stream opened on %s', direction, protocol);
|
|
268
268
|
if (connection == null) {
|
|
269
269
|
return;
|
|
270
270
|
}
|
|
@@ -289,7 +289,7 @@ export class DefaultUpgrader {
|
|
|
289
289
|
this._onStream({ connection, stream: muxedStream, protocol });
|
|
290
290
|
})
|
|
291
291
|
.catch(async (err) => {
|
|
292
|
-
|
|
292
|
+
log.error(err);
|
|
293
293
|
if (muxedStream.timeline.close == null) {
|
|
294
294
|
await muxedStream.close();
|
|
295
295
|
}
|
|
@@ -300,11 +300,11 @@ export class DefaultUpgrader {
|
|
|
300
300
|
if (muxer == null) {
|
|
301
301
|
throw new CodeError('Stream is not multiplexed', codes.ERR_MUXER_UNAVAILABLE);
|
|
302
302
|
}
|
|
303
|
-
|
|
303
|
+
log('%s-%s: starting new stream on %s', connection.id, direction, protocols);
|
|
304
304
|
const muxedStream = await muxer.newStream();
|
|
305
305
|
try {
|
|
306
306
|
if (options.signal == null) {
|
|
307
|
-
|
|
307
|
+
log('No abort signal was passed while trying to negotiate protocols %s falling back to default timeout', protocols);
|
|
308
308
|
options.signal = AbortSignal.timeout(30000);
|
|
309
309
|
setMaxListeners(Infinity, options.signal);
|
|
310
310
|
}
|
|
@@ -330,7 +330,7 @@ export class DefaultUpgrader {
|
|
|
330
330
|
return muxedStream;
|
|
331
331
|
}
|
|
332
332
|
catch (err) {
|
|
333
|
-
|
|
333
|
+
log.error('could not create new stream for protocols %s on connection with address %a', protocols, connection.remoteAddr, err);
|
|
334
334
|
if (muxedStream.timeline.close == null) {
|
|
335
335
|
muxedStream.abort(err);
|
|
336
336
|
}
|
|
@@ -345,7 +345,7 @@ export class DefaultUpgrader {
|
|
|
345
345
|
muxer.sink(upgradedConn.source),
|
|
346
346
|
upgradedConn.sink(muxer.source)
|
|
347
347
|
]).catch(err => {
|
|
348
|
-
|
|
348
|
+
log.error(err);
|
|
349
349
|
});
|
|
350
350
|
}
|
|
351
351
|
const _timeline = maConn.timeline;
|
|
@@ -360,7 +360,7 @@ export class DefaultUpgrader {
|
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
362
|
catch (err) {
|
|
363
|
-
|
|
363
|
+
log.error(err);
|
|
364
364
|
}
|
|
365
365
|
finally {
|
|
366
366
|
this.events.safeDispatchEvent('connection:close', {
|
|
@@ -368,7 +368,7 @@ export class DefaultUpgrader {
|
|
|
368
368
|
});
|
|
369
369
|
}
|
|
370
370
|
})().catch(err => {
|
|
371
|
-
|
|
371
|
+
log.error(err);
|
|
372
372
|
});
|
|
373
373
|
}
|
|
374
374
|
return Reflect.set(...args);
|
|
@@ -388,7 +388,6 @@ export class DefaultUpgrader {
|
|
|
388
388
|
multiplexer: muxer?.protocol,
|
|
389
389
|
encryption: cryptoProtocol,
|
|
390
390
|
transient,
|
|
391
|
-
logger: this.components.logger,
|
|
392
391
|
newStream: newStream ?? errConnectionNotMultiplexed,
|
|
393
392
|
getStreams: () => { if (muxer != null) {
|
|
394
393
|
return muxer.streams;
|
|
@@ -399,13 +398,13 @@ export class DefaultUpgrader {
|
|
|
399
398
|
close: async (options) => {
|
|
400
399
|
// Ensure remaining streams are closed gracefully
|
|
401
400
|
if (muxer != null) {
|
|
402
|
-
|
|
401
|
+
log.trace('close muxer');
|
|
403
402
|
await muxer.close(options);
|
|
404
403
|
}
|
|
405
|
-
|
|
404
|
+
log.trace('close maconn');
|
|
406
405
|
// close the underlying transport
|
|
407
406
|
await maConn.close(options);
|
|
408
|
-
|
|
407
|
+
log.trace('closed maconn');
|
|
409
408
|
},
|
|
410
409
|
abort: (err) => {
|
|
411
410
|
maConn.abort(err);
|
|
@@ -436,7 +435,7 @@ export class DefaultUpgrader {
|
|
|
436
435
|
*/
|
|
437
436
|
async _encryptInbound(connection) {
|
|
438
437
|
const protocols = Array.from(this.connectionEncryption.keys());
|
|
439
|
-
|
|
438
|
+
log('handling inbound crypto protocol selection', protocols);
|
|
440
439
|
try {
|
|
441
440
|
const { stream, protocol } = await mss.handle(connection, protocols, {
|
|
442
441
|
writeBytes: true
|
|
@@ -445,7 +444,7 @@ export class DefaultUpgrader {
|
|
|
445
444
|
if (encrypter == null) {
|
|
446
445
|
throw new Error(`no crypto module found for ${protocol}`);
|
|
447
446
|
}
|
|
448
|
-
|
|
447
|
+
log('encrypting inbound connection...');
|
|
449
448
|
return {
|
|
450
449
|
...await encrypter.secureInbound(this.components.peerId, stream),
|
|
451
450
|
protocol
|
|
@@ -461,7 +460,7 @@ export class DefaultUpgrader {
|
|
|
461
460
|
*/
|
|
462
461
|
async _encryptOutbound(connection, remotePeerId) {
|
|
463
462
|
const protocols = Array.from(this.connectionEncryption.keys());
|
|
464
|
-
|
|
463
|
+
log('selecting outbound crypto protocol', protocols);
|
|
465
464
|
try {
|
|
466
465
|
const { stream, protocol } = await mss.select(connection, protocols, {
|
|
467
466
|
writeBytes: true
|
|
@@ -470,7 +469,7 @@ export class DefaultUpgrader {
|
|
|
470
469
|
if (encrypter == null) {
|
|
471
470
|
throw new Error(`no crypto module found for ${protocol}`);
|
|
472
471
|
}
|
|
473
|
-
|
|
472
|
+
log('encrypting outbound connection to %p', remotePeerId);
|
|
474
473
|
return {
|
|
475
474
|
...await encrypter.secureOutbound(this.components.peerId, stream, remotePeerId),
|
|
476
475
|
protocol
|
|
@@ -486,17 +485,17 @@ export class DefaultUpgrader {
|
|
|
486
485
|
*/
|
|
487
486
|
async _multiplexOutbound(connection, muxers) {
|
|
488
487
|
const protocols = Array.from(muxers.keys());
|
|
489
|
-
|
|
488
|
+
log('outbound selecting muxer %s', protocols);
|
|
490
489
|
try {
|
|
491
490
|
const { stream, protocol } = await mss.select(connection, protocols, {
|
|
492
491
|
writeBytes: true
|
|
493
492
|
});
|
|
494
|
-
|
|
493
|
+
log('%s selected as muxer protocol', protocol);
|
|
495
494
|
const muxerFactory = muxers.get(protocol);
|
|
496
495
|
return { stream, muxerFactory };
|
|
497
496
|
}
|
|
498
497
|
catch (err) {
|
|
499
|
-
|
|
498
|
+
log.error('error multiplexing outbound stream', err);
|
|
500
499
|
throw new CodeError(String(err), codes.ERR_MUXER_UNAVAILABLE);
|
|
501
500
|
}
|
|
502
501
|
}
|
|
@@ -506,7 +505,7 @@ export class DefaultUpgrader {
|
|
|
506
505
|
*/
|
|
507
506
|
async _multiplexInbound(connection, muxers) {
|
|
508
507
|
const protocols = Array.from(muxers.keys());
|
|
509
|
-
|
|
508
|
+
log('inbound handling muxers %s', protocols);
|
|
510
509
|
try {
|
|
511
510
|
const { stream, protocol } = await mss.handle(connection, protocols, {
|
|
512
511
|
writeBytes: true
|
|
@@ -515,7 +514,7 @@ export class DefaultUpgrader {
|
|
|
515
514
|
return { stream, muxerFactory };
|
|
516
515
|
}
|
|
517
516
|
catch (err) {
|
|
518
|
-
|
|
517
|
+
log.error('error multiplexing inbound stream', err);
|
|
519
518
|
throw new CodeError(String(err), codes.ERR_MUXER_UNAVAILABLE);
|
|
520
519
|
}
|
|
521
520
|
}
|
package/dist/src/upgrader.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upgrader.js","sourceRoot":"","sources":["../../src/upgrader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAC1D,OAAO,KAAK,GAAG,MAAM,4BAA4B,CAAA;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAA;AAC3E,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AACnC,OAAO,EAAE,2BAA2B,EAAE,4BAA4B,EAAE,MAAM,gBAAgB,CAAA;AA8C1F,SAAS,uBAAuB,CAAE,QAAgB,EAAE,SAAoB;IACtE,IAAI;QACF,MAAM,EAAE,OAAO,EAAE,GAAG,SAAS,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAA;QAElD,OAAO,OAAO,CAAC,iBAAiB,CAAA;KACjC;IAAC,OAAO,GAAQ,EAAE;QACjB,IAAI,GAAG,CAAC,IAAI,KAAK,KAAK,CAAC,2BAA2B,EAAE;YAClD,MAAM,GAAG,CAAA;SACV;KACF;IAED,OAAO,2BAA2B,CAAA;AACpC,CAAC;AAED,SAAS,uBAAuB,CAAE,QAAgB,EAAE,SAAoB,EAAE,UAA4B,EAAE;IACtG,IAAI;QACF,MAAM,EAAE,OAAO,EAAE,GAAG,SAAS,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAA;QAElD,IAAI,OAAO,CAAC,kBAAkB,IAAI,IAAI,EAAE;YACtC,OAAO,OAAO,CAAC,kBAAkB,C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AI,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,qBAAqB,CAAC,CAAA;SAC9D;IACH,CAAC;CACF"}
|
package/dist/src/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,YAAY,CAAA;AAChC,eAAO,MAAM,IAAI,WAAW,CAAA"}
|
package/dist/src/version.js
CHANGED
package/dist/src/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,SAAS,CAAA;AAChC,MAAM,CAAC,MAAM,IAAI,GAAG,QAAQ,CAAA"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"AutoNATComponents": "https://libp2p.github.io/js-libp2p/interfaces/libp2p.autonat.AutoNATComponents.html",
|
|
3
|
+
"./autonat:AutoNATComponents": "https://libp2p.github.io/js-libp2p/interfaces/libp2p.autonat.AutoNATComponents.html",
|
|
4
|
+
"AutoNATServiceInit": "https://libp2p.github.io/js-libp2p/interfaces/libp2p.autonat.AutoNATServiceInit.html",
|
|
5
|
+
"./autonat:AutoNATServiceInit": "https://libp2p.github.io/js-libp2p/interfaces/libp2p.autonat.AutoNATServiceInit.html",
|
|
6
|
+
"autoNATService": "https://libp2p.github.io/js-libp2p/functions/libp2p.autonat.autoNATService.html",
|
|
7
|
+
"./autonat:autoNATService": "https://libp2p.github.io/js-libp2p/functions/libp2p.autonat.autoNATService.html",
|
|
8
|
+
"CircuitRelayService": "https://libp2p.github.io/js-libp2p/interfaces/libp2p.circuit_relay.CircuitRelayService.html",
|
|
9
|
+
"./circuit-relay:CircuitRelayService": "https://libp2p.github.io/js-libp2p/interfaces/libp2p.circuit_relay.CircuitRelayService.html",
|
|
10
|
+
"CircuitRelayServiceEvents": "https://libp2p.github.io/js-libp2p/interfaces/libp2p.circuit_relay.CircuitRelayServiceEvents.html",
|
|
11
|
+
"./circuit-relay:CircuitRelayServiceEvents": "https://libp2p.github.io/js-libp2p/interfaces/libp2p.circuit_relay.CircuitRelayServiceEvents.html",
|
|
12
|
+
"RelayReservation": "https://libp2p.github.io/js-libp2p/interfaces/libp2p.circuit_relay.RelayReservation.html",
|
|
13
|
+
"./circuit-relay:RelayReservation": "https://libp2p.github.io/js-libp2p/interfaces/libp2p.circuit_relay.RelayReservation.html",
|
|
14
|
+
"circuitRelayServer": "https://libp2p.github.io/js-libp2p/functions/libp2p.circuit_relay.circuitRelayServer.html",
|
|
15
|
+
"circuitRelayTransport": "https://libp2p.github.io/js-libp2p/functions/libp2p.circuit_relay.circuitRelayTransport.html",
|
|
16
|
+
"FetchService": "https://libp2p.github.io/js-libp2p/interfaces/libp2p.fetch.FetchService.html",
|
|
17
|
+
"./fetch:FetchService": "https://libp2p.github.io/js-libp2p/interfaces/libp2p.fetch.FetchService.html",
|
|
18
|
+
"FetchServiceComponents": "https://libp2p.github.io/js-libp2p/interfaces/libp2p.fetch.FetchServiceComponents.html",
|
|
19
|
+
"./fetch:FetchServiceComponents": "https://libp2p.github.io/js-libp2p/interfaces/libp2p.fetch.FetchServiceComponents.html",
|
|
20
|
+
"FetchServiceInit": "https://libp2p.github.io/js-libp2p/interfaces/libp2p.fetch.FetchServiceInit.html",
|
|
21
|
+
"./fetch:FetchServiceInit": "https://libp2p.github.io/js-libp2p/interfaces/libp2p.fetch.FetchServiceInit.html",
|
|
22
|
+
"HandleMessageOptions": "https://libp2p.github.io/js-libp2p/interfaces/libp2p.fetch.HandleMessageOptions.html",
|
|
23
|
+
"./fetch:HandleMessageOptions": "https://libp2p.github.io/js-libp2p/interfaces/libp2p.fetch.HandleMessageOptions.html",
|
|
24
|
+
"LookupFunction": "https://libp2p.github.io/js-libp2p/interfaces/libp2p.fetch.LookupFunction.html",
|
|
25
|
+
"./fetch:LookupFunction": "https://libp2p.github.io/js-libp2p/interfaces/libp2p.fetch.LookupFunction.html",
|
|
26
|
+
"fetchService": "https://libp2p.github.io/js-libp2p/functions/libp2p.fetch.fetchService-1.html",
|
|
27
|
+
"./fetch:fetchService": "https://libp2p.github.io/js-libp2p/functions/libp2p.fetch.fetchService-1.html",
|
|
28
|
+
"IdentifyService": "https://libp2p.github.io/js-libp2p/interfaces/libp2p.identify.IdentifyService.html",
|
|
29
|
+
"./identify:IdentifyService": "https://libp2p.github.io/js-libp2p/interfaces/libp2p.identify.IdentifyService.html",
|
|
30
|
+
"IdentifyServiceComponents": "https://libp2p.github.io/js-libp2p/interfaces/libp2p.identify.IdentifyServiceComponents.html",
|
|
31
|
+
"./identify:IdentifyServiceComponents": "https://libp2p.github.io/js-libp2p/interfaces/libp2p.identify.IdentifyServiceComponents.html",
|
|
32
|
+
"IdentifyServiceInit": "https://libp2p.github.io/js-libp2p/interfaces/libp2p.identify.IdentifyServiceInit.html",
|
|
33
|
+
"./identify:IdentifyServiceInit": "https://libp2p.github.io/js-libp2p/interfaces/libp2p.identify.IdentifyServiceInit.html",
|
|
34
|
+
"Message": "https://libp2p.github.io/js-libp2p/variables/libp2p.identify.Message.html",
|
|
35
|
+
"./identify:Message": "https://libp2p.github.io/js-libp2p/variables/libp2p.identify.Message.html",
|
|
36
|
+
"multicodecs": "https://libp2p.github.io/js-libp2p/variables/libp2p.identify.multicodecs.html",
|
|
37
|
+
"./identify:multicodecs": "https://libp2p.github.io/js-libp2p/variables/libp2p.identify.multicodecs.html",
|
|
38
|
+
"identifyService": "https://libp2p.github.io/js-libp2p/functions/libp2p.identify.identifyService-1.html",
|
|
39
|
+
"./identify:identifyService": "https://libp2p.github.io/js-libp2p/functions/libp2p.identify.identifyService-1.html",
|
|
40
|
+
"Libp2pInit": "https://libp2p.github.io/js-libp2p/interfaces/libp2p.index.Libp2pInit.html",
|
|
41
|
+
".:Libp2pInit": "https://libp2p.github.io/js-libp2p/interfaces/libp2p.index.Libp2pInit.html",
|
|
42
|
+
"Libp2pOptions": "https://libp2p.github.io/js-libp2p/types/libp2p.index.Libp2pOptions.html",
|
|
43
|
+
".:Libp2pOptions": "https://libp2p.github.io/js-libp2p/types/libp2p.index.Libp2pOptions.html",
|
|
44
|
+
"ServiceFactoryMap": "https://libp2p.github.io/js-libp2p/types/libp2p.index.ServiceFactoryMap.html",
|
|
45
|
+
".:ServiceFactoryMap": "https://libp2p.github.io/js-libp2p/types/libp2p.index.ServiceFactoryMap.html",
|
|
46
|
+
"createLibp2p": "https://libp2p.github.io/js-libp2p/functions/libp2p.index.createLibp2p.html",
|
|
47
|
+
".:createLibp2p": "https://libp2p.github.io/js-libp2p/functions/libp2p.index.createLibp2p.html",
|
|
48
|
+
"plaintext": "https://libp2p.github.io/js-libp2p/functions/libp2p.insecure.plaintext.html",
|
|
49
|
+
"./insecure:plaintext": "https://libp2p.github.io/js-libp2p/functions/libp2p.insecure.plaintext.html",
|
|
50
|
+
"PingService": "https://libp2p.github.io/js-libp2p/interfaces/libp2p.ping.PingService.html",
|
|
51
|
+
"./ping:PingService": "https://libp2p.github.io/js-libp2p/interfaces/libp2p.ping.PingService.html",
|
|
52
|
+
"PingServiceComponents": "https://libp2p.github.io/js-libp2p/interfaces/libp2p.ping.PingServiceComponents.html",
|
|
53
|
+
"./ping:PingServiceComponents": "https://libp2p.github.io/js-libp2p/interfaces/libp2p.ping.PingServiceComponents.html",
|
|
54
|
+
"PingServiceInit": "https://libp2p.github.io/js-libp2p/interfaces/libp2p.ping.PingServiceInit.html",
|
|
55
|
+
"./ping:PingServiceInit": "https://libp2p.github.io/js-libp2p/interfaces/libp2p.ping.PingServiceInit.html",
|
|
56
|
+
"pingService": "https://libp2p.github.io/js-libp2p/functions/libp2p.ping.pingService-1.html",
|
|
57
|
+
"./ping:pingService": "https://libp2p.github.io/js-libp2p/functions/libp2p.ping.pingService-1.html",
|
|
58
|
+
"ProtectorInit": "https://libp2p.github.io/js-libp2p/interfaces/libp2p.pnet.ProtectorInit.html",
|
|
59
|
+
"./pnet:ProtectorInit": "https://libp2p.github.io/js-libp2p/interfaces/libp2p.pnet.ProtectorInit.html",
|
|
60
|
+
"generateKey": "https://libp2p.github.io/js-libp2p/functions/libp2p.pnet.generateKey.html",
|
|
61
|
+
"preSharedKey": "https://libp2p.github.io/js-libp2p/functions/libp2p.pnet.preSharedKey.html",
|
|
62
|
+
"./pnet:preSharedKey": "https://libp2p.github.io/js-libp2p/functions/libp2p.pnet.preSharedKey.html",
|
|
63
|
+
"PMPOptions": "https://libp2p.github.io/js-libp2p/interfaces/libp2p.upnp_nat.PMPOptions.html",
|
|
64
|
+
"./upnp-nat:PMPOptions": "https://libp2p.github.io/js-libp2p/interfaces/libp2p.upnp_nat.PMPOptions.html",
|
|
65
|
+
"UPnPNATComponents": "https://libp2p.github.io/js-libp2p/interfaces/libp2p.upnp_nat.UPnPNATComponents.html",
|
|
66
|
+
"./upnp-nat:UPnPNATComponents": "https://libp2p.github.io/js-libp2p/interfaces/libp2p.upnp_nat.UPnPNATComponents.html",
|
|
67
|
+
"UPnPNATInit": "https://libp2p.github.io/js-libp2p/interfaces/libp2p.upnp_nat.UPnPNATInit.html",
|
|
68
|
+
"./upnp-nat:UPnPNATInit": "https://libp2p.github.io/js-libp2p/interfaces/libp2p.upnp_nat.UPnPNATInit.html",
|
|
69
|
+
"uPnPNATService": "https://libp2p.github.io/js-libp2p/functions/libp2p.upnp_nat.uPnPNATService.html",
|
|
70
|
+
"./upnp-nat:uPnPNATService": "https://libp2p.github.io/js-libp2p/functions/libp2p.upnp_nat.uPnPNATService.html"
|
|
71
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "libp2p",
|
|
3
|
-
"version": "0.46.19
|
|
3
|
+
"version": "0.46.19",
|
|
4
4
|
"description": "JavaScript implementation of libp2p, a modular peer to peer network stack",
|
|
5
5
|
"license": "Apache-2.0 OR MIT",
|
|
6
6
|
"homepage": "https://github.com/libp2p/js-libp2p/tree/master/packages/libp2p#readme",
|
|
@@ -121,18 +121,18 @@
|
|
|
121
121
|
},
|
|
122
122
|
"dependencies": {
|
|
123
123
|
"@achingbrain/nat-port-mapper": "^1.0.9",
|
|
124
|
-
"@libp2p/crypto": "2.0.7
|
|
125
|
-
"@libp2p/interface": "0.1.5
|
|
126
|
-
"@libp2p/interface-internal": "0.1.8
|
|
127
|
-
"@libp2p/keychain": "3.0.7
|
|
128
|
-
"@libp2p/logger": "3.0.5
|
|
129
|
-
"@libp2p/multistream-select": "4.0.5
|
|
130
|
-
"@libp2p/peer-collections": "4.0.7
|
|
131
|
-
"@libp2p/peer-id": "3.0.5
|
|
132
|
-
"@libp2p/peer-id-factory": "3.0.7
|
|
133
|
-
"@libp2p/peer-record": "6.0.8
|
|
134
|
-
"@libp2p/peer-store": "9.0.8
|
|
135
|
-
"@libp2p/utils": "4.0.6
|
|
124
|
+
"@libp2p/crypto": "^2.0.7",
|
|
125
|
+
"@libp2p/interface": "^0.1.5",
|
|
126
|
+
"@libp2p/interface-internal": "^0.1.8",
|
|
127
|
+
"@libp2p/keychain": "^3.0.7",
|
|
128
|
+
"@libp2p/logger": "^3.0.5",
|
|
129
|
+
"@libp2p/multistream-select": "^4.0.5",
|
|
130
|
+
"@libp2p/peer-collections": "^4.0.7",
|
|
131
|
+
"@libp2p/peer-id": "^3.0.5",
|
|
132
|
+
"@libp2p/peer-id-factory": "^3.0.7",
|
|
133
|
+
"@libp2p/peer-record": "^6.0.8",
|
|
134
|
+
"@libp2p/peer-store": "^9.0.8",
|
|
135
|
+
"@libp2p/utils": "^4.0.6",
|
|
136
136
|
"@multiformats/mafmt": "^12.1.2",
|
|
137
137
|
"@multiformats/multiaddr": "^12.1.5",
|
|
138
138
|
"@multiformats/multiaddr-matcher": "^1.0.0",
|
|
@@ -170,17 +170,17 @@
|
|
|
170
170
|
"@chainsafe/libp2p-gossipsub": "^10.0.0",
|
|
171
171
|
"@chainsafe/libp2p-noise": "^13.0.0",
|
|
172
172
|
"@chainsafe/libp2p-yamux": "^5.0.0",
|
|
173
|
-
"@libp2p/bootstrap": "9.0.11
|
|
173
|
+
"@libp2p/bootstrap": "^9.0.11",
|
|
174
174
|
"@libp2p/daemon-client": "^7.0.0",
|
|
175
175
|
"@libp2p/daemon-server": "^6.0.0",
|
|
176
|
-
"@libp2p/floodsub": "8.0.12
|
|
177
|
-
"@libp2p/interface-compliance-tests": "4.1.4
|
|
176
|
+
"@libp2p/floodsub": "^8.0.12",
|
|
177
|
+
"@libp2p/interface-compliance-tests": "^4.1.4",
|
|
178
178
|
"@libp2p/interop": "^9.0.0",
|
|
179
|
-
"@libp2p/kad-dht": "10.0.13
|
|
180
|
-
"@libp2p/mdns": "9.0.13
|
|
181
|
-
"@libp2p/mplex": "9.0.11
|
|
182
|
-
"@libp2p/tcp": "8.0.12
|
|
183
|
-
"@libp2p/websockets": "7.0.12
|
|
179
|
+
"@libp2p/kad-dht": "^10.0.13",
|
|
180
|
+
"@libp2p/mdns": "^9.0.13",
|
|
181
|
+
"@libp2p/mplex": "^9.0.11",
|
|
182
|
+
"@libp2p/tcp": "^8.0.12",
|
|
183
|
+
"@libp2p/websockets": "^7.0.12",
|
|
184
184
|
"@types/xsalsa20": "^1.1.0",
|
|
185
185
|
"aegir": "^41.0.2",
|
|
186
186
|
"execa": "^8.0.1",
|
package/src/components.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { CodeError } from '@libp2p/interface/errors'
|
|
2
2
|
import { isStartable, type Startable } from '@libp2p/interface/startable'
|
|
3
|
-
import {
|
|
4
|
-
import type { Libp2pEvents, ComponentLogger } from '@libp2p/interface'
|
|
3
|
+
import type { Libp2pEvents } from '@libp2p/interface'
|
|
5
4
|
import type { ConnectionProtector } from '@libp2p/interface/connection'
|
|
6
5
|
import type { ConnectionGater } from '@libp2p/interface/connection-gater'
|
|
7
6
|
import type { ContentRouting } from '@libp2p/interface/content-routing'
|
|
@@ -19,7 +18,6 @@ import type { Datastore } from 'interface-datastore'
|
|
|
19
18
|
|
|
20
19
|
export interface Components extends Record<string, any>, Startable {
|
|
21
20
|
peerId: PeerId
|
|
22
|
-
logger: ComponentLogger
|
|
23
21
|
events: TypedEventTarget<Libp2pEvents>
|
|
24
22
|
addressManager: AddressManager
|
|
25
23
|
peerStore: PeerStore
|
|
@@ -37,7 +35,6 @@ export interface Components extends Record<string, any>, Startable {
|
|
|
37
35
|
|
|
38
36
|
export interface ComponentsInit {
|
|
39
37
|
peerId?: PeerId
|
|
40
|
-
logger?: ComponentLogger
|
|
41
38
|
events?: TypedEventTarget<Libp2pEvents>
|
|
42
39
|
addressManager?: AddressManager
|
|
43
40
|
peerStore?: PeerStore
|
|
@@ -63,10 +60,6 @@ class DefaultComponents implements Startable {
|
|
|
63
60
|
for (const [key, value] of Object.entries(init)) {
|
|
64
61
|
this.components[key] = value
|
|
65
62
|
}
|
|
66
|
-
|
|
67
|
-
if (this.components.logger == null) {
|
|
68
|
-
this.components.logger = defaultLogger()
|
|
69
|
-
}
|
|
70
63
|
}
|
|
71
64
|
|
|
72
65
|
isStarted (): boolean {
|
package/src/connection/index.ts
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { symbol } from '@libp2p/interface/connection'
|
|
2
2
|
import { CodeError } from '@libp2p/interface/errors'
|
|
3
3
|
import { setMaxListeners } from '@libp2p/interface/events'
|
|
4
|
-
import
|
|
4
|
+
import { logger } from '@libp2p/logger'
|
|
5
|
+
import type { AbortOptions } from '@libp2p/interface'
|
|
5
6
|
import type { Direction, Connection, Stream, ConnectionTimeline, ConnectionStatus, NewStreamOptions } from '@libp2p/interface/connection'
|
|
6
7
|
import type { PeerId } from '@libp2p/interface/peer-id'
|
|
7
8
|
import type { Multiaddr } from '@multiformats/multiaddr'
|
|
8
9
|
|
|
10
|
+
const log = logger('libp2p:connection')
|
|
11
|
+
|
|
9
12
|
const CLOSE_TIMEOUT = 500
|
|
10
13
|
|
|
11
14
|
interface ConnectionInit {
|
|
@@ -21,7 +24,6 @@ interface ConnectionInit {
|
|
|
21
24
|
multiplexer?: string
|
|
22
25
|
encryption?: string
|
|
23
26
|
transient?: boolean
|
|
24
|
-
logger: ComponentLogger
|
|
25
27
|
}
|
|
26
28
|
|
|
27
29
|
/**
|
|
@@ -74,8 +76,6 @@ export class ConnectionImpl implements Connection {
|
|
|
74
76
|
*/
|
|
75
77
|
private readonly _getStreams: () => Stream[]
|
|
76
78
|
|
|
77
|
-
readonly #log: Logger
|
|
78
|
-
|
|
79
79
|
/**
|
|
80
80
|
* An implementation of the js-libp2p connection.
|
|
81
81
|
* Any libp2p transport should use an upgrader to return this connection.
|
|
@@ -92,7 +92,6 @@ export class ConnectionImpl implements Connection {
|
|
|
92
92
|
this.multiplexer = init.multiplexer
|
|
93
93
|
this.encryption = init.encryption
|
|
94
94
|
this.transient = init.transient ?? false
|
|
95
|
-
this.#log = init.logger.forComponent('libp2p:connection')
|
|
96
95
|
|
|
97
96
|
if (this.remoteAddr.getPeerId() == null) {
|
|
98
97
|
this.remoteAddr = this.remoteAddr.encapsulate(`/p2p/${this.remotePeer}`)
|
|
@@ -151,7 +150,7 @@ export class ConnectionImpl implements Connection {
|
|
|
151
150
|
return
|
|
152
151
|
}
|
|
153
152
|
|
|
154
|
-
|
|
153
|
+
log('closing connection to %a', this.remoteAddr)
|
|
155
154
|
|
|
156
155
|
this.status = 'closing'
|
|
157
156
|
|
|
@@ -160,35 +159,35 @@ export class ConnectionImpl implements Connection {
|
|
|
160
159
|
setMaxListeners(Infinity, options.signal)
|
|
161
160
|
|
|
162
161
|
try {
|
|
163
|
-
|
|
162
|
+
log.trace('closing all streams')
|
|
164
163
|
|
|
165
164
|
// close all streams gracefully - this can throw if we're not multiplexed
|
|
166
165
|
await Promise.all(
|
|
167
166
|
this.streams.map(async s => s.close(options))
|
|
168
167
|
)
|
|
169
168
|
|
|
170
|
-
|
|
169
|
+
log.trace('closing underlying transport')
|
|
171
170
|
|
|
172
171
|
// close raw connection
|
|
173
172
|
await this._close(options)
|
|
174
173
|
|
|
175
|
-
|
|
174
|
+
log.trace('updating timeline with close time')
|
|
176
175
|
|
|
177
176
|
this.status = 'closed'
|
|
178
177
|
this.timeline.close = Date.now()
|
|
179
178
|
} catch (err: any) {
|
|
180
|
-
|
|
179
|
+
log.error('error encountered during graceful close of connection to %a', this.remoteAddr, err)
|
|
181
180
|
this.abort(err)
|
|
182
181
|
}
|
|
183
182
|
}
|
|
184
183
|
|
|
185
184
|
abort (err: Error): void {
|
|
186
|
-
|
|
185
|
+
log.error('aborting connection to %a due to error', this.remoteAddr, err)
|
|
187
186
|
|
|
188
187
|
this.status = 'closing'
|
|
189
188
|
this.streams.forEach(s => { s.abort(err) })
|
|
190
189
|
|
|
191
|
-
|
|
190
|
+
log.error('all streams aborted', this.streams.length)
|
|
192
191
|
|
|
193
192
|
// Abort raw connection
|
|
194
193
|
this._abort(err)
|