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

confusing to the activesockets #149

Closed
forkbomb-mj opened this issue Jan 25, 2015 · 4 comments
Closed

confusing to the activesockets #149

forkbomb-mj opened this issue Jan 25, 2015 · 4 comments

Comments

@forkbomb-mj
Copy link

Hello, I feel confusing. In the line 329 to the mochiweb_socket_server.erl.
I change the max to 20 in the state that named mochiweb_socket_server, and connect max users then close connections, and I do it several times. I found that the activesockets will increase the value of acceptor_pool_size(the value is 16), it lead to the next time can only connect 16 users and others are in the backlog because of the activessockets record a incorrect value.

It just likes this table :
cut
in the second time, the last four user cann't come in.

Thanks for your help :-)

@etrepum
Copy link
Member

etrepum commented Jan 26, 2015

Please try the branch active-socket-149 and let me know if this problem persists. I haven't had a chance to come up with a test suite for the issue, but the code is much cleaner and I expect it to work now.

@etrepum
Copy link
Member

etrepum commented Jan 26, 2015

63947f4

@forkbomb-mj
Copy link
Author

👍 this problem has disappeared in the new code.

etrepum added a commit that referenced this issue Feb 1, 2015
@etrepum
Copy link
Member

etrepum commented Feb 1, 2015

Fixed by #150

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

Successfully merging a pull request may close this issue.

2 participants