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

Temporary async readers #2

Open
MagnusS opened this issue Mar 19, 2015 · 0 comments
Open

Temporary async readers #2

MagnusS opened this issue Mar 19, 2015 · 0 comments

Comments

@MagnusS
Copy link
Member

MagnusS commented Mar 19, 2015

To avoid a deadlock in the mirage tcpip-stack I have implemented an async version of the backend as a temporary workaround (enable with Basic_backend.create ~use_async_readers:true ()). When this is enabled, calls to the listen-function are wrapped in Lwt.async. This means that write never blocks and that potentially a large number of reader threads may be started if the writer is faster than the readers. It works for tcpip though, as it adjusts its rate.

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

1 participant