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

Run exe file after downloading #198

Open
green13 opened this issue Dec 3, 2014 · 5 comments
Open

Run exe file after downloading #198

green13 opened this issue Dec 3, 2014 · 5 comments
Labels

Comments

@green13
Copy link

@green13 green13 commented Dec 3, 2014

Hello.
I use webtorrent in node, os windows 8.1.
I'm trying to run downloaded .exe file (webtorrent is running) and get the error "file is locked by another process".

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Dec 5, 2014

Hi @green13, thanks for reporting this issue. Does this work with other torrent clients? Can you open up .exe files that are being seeded by uTorrent, for example?

@green13

This comment has been minimized.

Copy link
Author

@green13 green13 commented Dec 8, 2014

This works with uTorrent. I can open up .exe files that are being seeded.

@green13

This comment has been minimized.

Copy link
Author

@green13 green13 commented Jan 26, 2015

Any news on this?

@arestov

This comment has been minimized.

Copy link

@arestov arestov commented Jan 26, 2015

I guess that the reason is we need write file descriptor (fd) which block file reading, but after loading finish we need only read fd rights . So after finish we must free write fd (maby even before finish event).

Real kung fu is to request when we will request write rd only when we really need to write and close if we dont need, by using throtling by data length and time (for e.g. not often than 500kb and not ofter than 0.5s)

@feross feross added the bug label Jul 1, 2015
@green13

This comment has been minimized.

Copy link
Author

@green13 green13 commented Apr 25, 2016

Call torrent.store.close helps.

@feross feross added the accepted label May 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

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