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

Blocking read and Message body #23

Closed
jeremylvln opened this issue Feb 21, 2020 · 2 comments
Closed

Blocking read and Message body #23

jeremylvln opened this issue Feb 21, 2020 · 2 comments

Comments

@jeremylvln
Copy link
Contributor

Actually, we can read the request line and the headers. But we don't have the size of the body. Therefore, how can we read all the body to store it in the packet array?

One solution is to provide to the developers the ability to read into the file descriptor. It's possible as we can access the fd with the oZ::Packet class. But in a SSL context, we have to use a middleware using SSL_read.

Any solution?

@jeremylvln
Copy link
Contributor Author

We can refactor the API by removing the bytearray and give the user an abstraction of a read an write method.

We can also use the Content-Length header but what if the request is chunked?

@jeremylvln
Copy link
Contributor Author

The problem was on my side, my bad.

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