Skip to content
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.

Commit

Permalink
fix: ignore missing stream (#169)
Browse files Browse the repository at this point in the history
Do not send a reset as this makes the protocol impossibly chatty.
  • Loading branch information
achingbrain authored May 5, 2022
1 parent 543a1c4 commit f6d3dd9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/mplex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { abortableSource } from 'abortable-iterator'
import { encode } from './encode.js'
import { decode } from './decode.js'
import { restrictSize } from './restrict-size.js'
import { MessageTypes, MessageTypeNames, Message, ReceiverMessageTypes, InitiatorMessageTypes } from './message-types.js'
import { MessageTypes, MessageTypeNames, Message } from './message-types.js'
import { createStream } from './stream.js'
import { toString as uint8ArrayToString } from 'uint8arrays'
import { trackedMap } from '@libp2p/tracked-map'
Expand Down Expand Up @@ -235,10 +235,6 @@ export class MplexStreamMuxer implements StreamMuxer {
if (stream == null) {
log('missing stream %s', id)

// send a reset
this._source.push({ id, type: InitiatorMessageTypes.RESET })
this._source.push({ id, type: ReceiverMessageTypes.RESET })

return
}

Expand Down

0 comments on commit f6d3dd9

Please sign in to comment.