Skip to content
This repository was archived by the owner on Jun 19, 2018. It is now read-only.

improve backpressure/flow control #11

Open
mpenet opened this issue Dec 19, 2014 · 0 comments
Open

improve backpressure/flow control #11

mpenet opened this issue Dec 19, 2014 · 0 comments

Comments

@mpenet
Copy link
Owner

mpenet commented Dec 19, 2014

Jetty9 allows control over this and it was overlooked on first releases, let's fix this!

The main idea is that acknowledged puts indicate succes delivery in write mode, and in read we wont feed the input channel until reads from it. That means that a user who checks return values of operations on a channel will be able to do proper flow control, otherwise he'll be bound by the kind of buffer used (if any provided other than the default) and/or the internal core.async put queue size. This should satisfy everybody, as you can work in sync or write faster than delivery if you dont' care (you should care).

websocket

server

http://download.eclipse.org/jetty/stable-9/apidocs/org/eclipse/jetty/server/HttpOutput.html
http://download.eclipse.org/jetty/stable-9/apidocs/org/eclipse/jetty/server/HttpInput.html

http client

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

No branches or pull requests

1 participant