Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[electron] Problems with download big torrent #1122

Closed
avengerweb opened this issue May 4, 2017 · 1 comment
Closed

[electron] Problems with download big torrent #1122

avengerweb opened this issue May 4, 2017 · 1 comment

Comments

@avengerweb
Copy link

@avengerweb avengerweb commented May 4, 2017

Latest version electron and WebTorrent.

WoWClient.torrent.zip

 let client = new WebTorrent();
      client.add('./WoWClient.torrent', {path: '../'}, (torrent) =>

                {
                    console.log(torrent);
                    torrent.on('done', function ()
                    {
                        console.log(torrent);
                        console.log('torrent download finished')
                        if (interval)
                            clearInterval(interval);

                        if (client)
                            client.destroy();

                        client = null;
                    });

                    interval = setInterval(() =>
                    {
                        console.log(torrent.progress)
                    }, 150);
                });

So, I get a warning: (I can increase limit, warning will disappear)

(node:15560) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 ready listeners added. Use emitter.setMaxListeners() to increase limit

Then download starts, is interval progress log:
As you can see it`s some time jump back, and after some jumps downloading stacks (in my case at 49.5mb)

Small torrents works perfect, no limit message and no jumps.

Update.vue:80 0.003538212592519472
Update.vue:80 0.0035581899534559056
Update.vue:80 0.0035792771677776967
Update.vue:80 0.0035937052617873435
Update.vue:80 0.0036181220362652066
Update.vue:80 0.003645868370899142
Update.vue:80 0.0036669555852209333
Update.vue:80 0.003692482213084154
Update.vue:80 0.00371578913417666
Update.vue:80 0.0037379862018838087
Update.vue:80 0.0037612931229763146
Update.vue:80 0.0037857098974541778
Update.vue:80 0.003806797111775969
Update.vue:80 0.0038312138862538325
Update.vue:80 0.0038523011005756236
Update.vue:80 0.0038811572885949163
Update.vue:80 0.003906683916458137
Update.vue:80 0.003931100690936001
Update.vue:80 0.003947748491716362
Update.vue:80 0.003963286439111366
Update.vue:80 0.003988813066974586
Update.vue:80 0.004009900281296378
Update.vue:80 0.004032097349003527
Update.vue:80 0.004060953537022819
Update.vue:80 0.004078711191188539
Update.vue:80 0.0041020181122810445
Update.vue:80 0.004124215179988192
Update.vue:80 0.004147522101080698
Update.vue:80 0.004176378289099992
Update.vue:80 0.004195245796651068
Update.vue:80 0.004215223157587502
Update.vue:80 0.0042440793456067945
Update.vue:80 0.004261836999772514
Update.vue:80 0.004281814360708947
Update.vue:80 0.0043084508419575255
Update.vue:80 0.004332867616435389
Update.vue:80 0.004351735123986465
Update.vue:80 0.004373932191693614
Update.vue:80 0.0044027883797129064
Update.vue:80 0.00442276574064934
Update.vue:80 0.004446072661741846
Update.vue:80 0.004464940169292922
Update.vue:80 0.004487137237000071
Update.vue:80 0.004517103278404721
Update.vue:80 0.004541520052882585
Update.vue:80 0.004561497413819018
Update.vue:80 0.004589243748452954
Update.vue:80 0.00461255066954546
Update.vue:80 0.004628088616940464
Update.vue:80 0.004655834951574399
Update.vue:80 0.004674702459125476
Update.vue:80 0.0046968995268326244
Update.vue:80 0.004723536008081202
Update.vue:80 0.00475017248932978
Update.vue:80 0.004775699117193001
Update.vue:80 0.004794566624744078
Update.vue:80 0.004817873545836584
Update.vue:80 0.004837850906773017
Update.vue:80 0.004858938121094808
Update.vue:80 0.004883354895572672
Update.vue:80 0.004907771670050535
Update.vue:80 0.004934408151299113
Update.vue:80 0.004952165805464832
Update.vue:80 0.004971033313015908
Update.vue:80 0.0049987796476498435
Update.vue:80 0.0050220865687423495
Update.vue:80 0.005042063929678783
Update.vue:80 0.005067590557542004
Update.vue:80 0.005089787625249153
Update.vue:80 0.005114204399727016
Update.vue:80 0.005140840880975594
Update.vue:80 0.0051574886817559555
Update.vue:80 0.0046092211093893875
Update.vue:80 0.004638077297408681
Update.vue:80 0.0046580546583451145
Update.vue:80 0.004679141872666905
Update.vue:80 0.004704668500530126
Update.vue:80 0.004730195128393347
Update.vue:80 0.0047523921961004955
Update.vue:80 0.004773479410422286
Update.vue:80 0.0047923469179733625
Update.vue:80 0.004817873545836584
Update.vue:80 0.004840070613543732
Update.vue:80 0.004861157827865523
Update.vue:80 0.0048866844557287435
Update.vue:80 0.004912211083591965
Update.vue:80 0.004928858884372326
Update.vue:80 0.004954385512235547
Update.vue:80 0.004984351553640198
Update.vue:80 0.005012097888274133
Update.vue:80 0.005028745689054494
Update.vue:80 0.005050942756761643
Update.vue:80 0.005070920117698077
Update.vue:80 0.00509533689217594
Update.vue:80 0.005120863520039161
Update.vue:80 0.005148609854673096
Update.vue:80 0.005167477362224173
Update.vue:80 0.005191894136702036
Update.vue:80 0.0052129813510238265
Update.vue:80 0.0052373981255016905
Update.vue:80 0.005257375486438124
Update.vue:80 0.00528068240753063
Update.vue:80 0.005305099182008493
Update.vue:80 0.005322856836174212
Update.vue:80 0.005346163757266718
Update.vue:80 0.0053716903851299385
Update.vue:80 0.00539721701299316
Update.vue:80 0.005413864813773521
Update.vue:80 0.005428292907783168
Update.vue:80 0.005456039242417103
Update.vue:80 0.005486005283821754
Update.vue:80 0.0055004333778314
Update.vue:80 0.005525960005694621
Update.vue:80 0.005553706340328556
Update.vue:80 0.005572573847879633
Update.vue:80 0.0055947709155867815
Update.vue:80 0.00562140739683536
Update.vue:80 0.005644714317927866
Update.vue:80 0.005666911385635014
Update.vue:80 0.005687998599956805
Update.vue:80 0.005714635081205384
Update.vue:80 0.005733502588756459
Update.vue:80 0.005757919363234323
Update.vue:80 0.005779006577556114
Update.vue:80 0.005800093791877905
Update.vue:80 0.0058245105663557685
Update.vue:80 0.005850037194218989
Update.vue:80 0.005868904701770065
Update.vue:80 0.005888882062706499
Update.vue:80 0.005906639716872218
Update.vue:80 0.005928836784579367
Update.vue:80 0.005954363412442587
Update.vue:80 0.005976560480149736
Update.vue:80 0.006004306814783671
Update.vue:80 0.006028723589261534
Update.vue:80 0.006047591096812611
Update.vue:80 0.005502653084602115
Update.vue:80 0.0055303994192360505
Update.vue:80 0.00554815707340177
Update.vue:80 0.005575903408035705
Update.vue:80 0.005595880768972139
Update.vue:80 0.005614748276523215
Update.vue:80 0.005639165051001078
Update.vue:80 0.005661362118708227
Update.vue:80 0.005686888746571447
Update.vue:80 0.005709085814278596
Update.vue:80 0.005740161709068604
Update.vue:80 0.005762358776775753
Update.vue:80 0.005780116430941471
Update.vue:80 0.005805643058804692
Update.vue:80 0.005830059833282555
Update.vue:80 0.005850037194218989
Update.vue:80 0.005873344115311495
Update.vue:80 0.005898870743174716
Update.vue:80 0.005918848104111149
Update.vue:80 0.005947704292130443
Update.vue:80 0.005965461946296161
Update.vue:80 0.00598765901400331
Update.vue:80 0.006009856081710458
Update.vue:80 0.0054671377762706775
Update.vue:80 0.005491554550748541
Update.vue:80 0.005519300885382476
Update.vue:80 0.00553927824631891
Update.vue:80 0.005563695020796774
Update.vue:80 0.005588111795274637
Update.vue:80 0.0056103088629817855
Update.vue:80 0.005632505930688933
@avengerweb avengerweb changed the title [electron] Trying to download big torrent [electron] Problems with download big torrent May 4, 2017
@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Apr 21, 2018

This issue has been open for a while so it's probably stale. I'm going to close it for now.

If you're still experiencing this issue, please leave a comment or open a new issue.

@feross feross closed this Apr 21, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Jul 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.