-
-
Notifications
You must be signed in to change notification settings - Fork 87
Servers have their own internal loop #21
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
Conversation
- on_stream is now passed into server constructor instead of being passed to :run. - server objects are now `cqueues.poll()`-able - `server:close()` closes connections due to `cq:reset()` forcing an early return of `get_next_incoming_stream`
I'm not sure about merging this. I don't think it gains a lot, and it has potential long term performance implications. |
Thinking about this more: the reason I ended up with this structure is that I was avoiding |
All wrap_socket failure paths now return an errno
- Calling with no arg shouldn't clear the handler - Use on_error_ instead of onerror_
…ream Server will no longer automatically pipelined
|
- Now has a context argument (which could be server object, socket object, connection object or stream object) - Removed level argument - Made default function do nothing in non-server cases. This is more sensible than throwing an error for per-client issues
Possible major server API change.