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

Error on Win32 #678

Closed
KingOfGerrit opened this issue Jun 13, 2016 · 12 comments
Closed

Error on Win32 #678

KingOfGerrit opened this issue Jun 13, 2016 · 12 comments

Comments

@KingOfGerrit
Copy link

I have that error on Windows 10 x64 with aria2c.exe x32:
[WARN] [SelectEventPoll.cc:235] The number of file descriptor exceeded FD_SETSIZE. Download may slow down or fail.
How fix this error?

@tatsuhiro-t
Copy link
Collaborator

Do you have lots of concurrent downloads? It looks like the aria2 process ran out of file descriptor (sockets + opened file), which is capped by 1024. Try to reduce the number of downloads.

@KingOfGerrit
Copy link
Author

Yes, I have lots of concurrent downloads because I test aria2 with a lots of downloads. Can you fix this problem in next vesion?

@tatsuhiro-t
Copy link
Collaborator

The next version, v1.24.0 is released today, and we'd like to avoid last minutes change.

If you can build aria2, try increase value of FD_SETSIZE macro:

#define FD_SETSIZE 1024

@tatsuhiro-t tatsuhiro-t added this to the v1.25.0 milestone Jun 15, 2016
@KingOfGerrit
Copy link
Author

Can you do auto select of value?

@tatsuhiro-t
Copy link
Collaborator

Based on what?

FD_SETSIZE is compile time constant. You cannot change it in runtime.

@KingOfGerrit
Copy link
Author

I read that for Windows fd_setsize can be changed and more then 1024 but for Linux hardcore 1024.
How compile aria2 for windows?

@tatsuhiro-t
Copy link
Collaborator

We use epoll for Linux, which is not limited by 1024 file descriptor.

We have Dockerfile.mingw to compile windows binary. It clones master branch, so you have to change it to your copy to include the change.

@KingOfGerrit
Copy link
Author

Okey. Thanks.
Have any idea how to behave aria2 if I shall increase FD_SETSIZE?

@tatsuhiro-t
Copy link
Collaborator

I made a commit to increase FD_SETSIZE to 32768.
Now you can build aria2c windows binary using our stock Dockerfile.mingw.
Please test the build and see that it does not show the error message you encountered before.

@KingOfGerrit
Copy link
Author

Okay.
In the near future results.

@KingOfGerrit
Copy link
Author

I tested aria 2 with FD_SETSIZE 32768, and after 2 days work with 20 torrents all okay. No have any error.

@tatsuhiro-t
Copy link
Collaborator

Thank you. I think this issue has been fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants