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

better control of buffer sizes #13

Open
doudou opened this issue Sep 8, 2016 · 0 comments
Open

better control of buffer sizes #13

doudou opened this issue Sep 8, 2016 · 0 comments

Comments

@doudou
Copy link
Member

doudou commented Sep 8, 2016

As noticed by Janosch in #12, we're not controlling the receive buffer sizes. In the case of stream protocols (e.g. TCP), this is fine, but for e.g. UDP or serial, it is more problematic.

This is a proposal to add more control over these:

  • have a Driver-level "get/setReceiveBufferSize()" attribute, expressed in in the number of packets it should hold. Default of 0 which indicates "no control".
  • have a Driver-level "get/setInternalBufferSize()" attribute, expressed in the number of packets it should hold. Defaults to 2.
  • let each I/O handler use the receive buffer hint or not.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant