feross/simple-peer

When Simple-peer ICECOMPLETE_TIMEOUT is set to 1000 milliseconds Webtorrent performs MUCH faster

zackees opened this issue · 0 comments

What version of this package are you using?

Webtorrent v1.8.26

What operating system, Node.js, and npm version?

Win10 with brave:

Version 1.41.100 Chromium: 103.0.5060.134 (Official Build) (64-bit)

What happened?

Client never connects faster than 5.5 seconds, until ICECOMPLETE_TIMEOUT is set to a different value like 1000, in which case client will connect within 1.5 seconds.

What did you expect to happen?

I would expect the client to connect as fast as possible.

Are you willing to submit a pull request to fix this bug?

Maybe. I'm pointing this bug out so that others hitting this issue can find this bug report.

Reference points:

const ICECOMPLETE_TIMEOUT = 5 * 1000

this._debug('started iceComplete timeout')