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

a question #2

Closed
jjcang opened this issue Apr 22, 2013 · 1 comment
Closed

a question #2

jjcang opened this issue Apr 22, 2013 · 1 comment

Comments

@jjcang
Copy link

jjcang commented Apr 22, 2013

hi, I have read the code and have a question,
the main thread use select and only accept new connections,
and added the new file descriptor to the work threads fd-sets( server.c #117).
is this ok ?
the main & worker are running in different thread, how the worker knows a new fd is added & break from its' sub select/poll function?

I use windows, so I cant build the code. thanks for your reply!

@matyhtf
Copy link
Member

matyhtf commented Apr 23, 2013

The epoll event will be triggered when new data arrives fd.
We only modify the settings of epoll notification to be completed by the kernel.

@matyhtf matyhtf closed this as completed May 30, 2013
matyhtf pushed a commit that referenced this issue Aug 16, 2014
@diida diida mentioned this issue Jul 28, 2015
@benzhan benzhan mentioned this issue Jan 8, 2016
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

No branches or pull requests

2 participants