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

Improve writing into HTTP/2 streams without a read-able object #25

Open
easysong opened this issue Feb 5, 2021 · 1 comment
Open

Improve writing into HTTP/2 streams without a read-able object #25

easysong opened this issue Feb 5, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@easysong
Copy link

easysong commented Feb 5, 2021

As soon as I call start_stream_transcription, this module use cpu 100%.
The reason is that BufferableByteStream's read function keeps calling without sleep,
but I don't know where it is called.

@joguSD
Copy link
Contributor

joguSD commented Feb 16, 2021

@easysong Yes, this is a known issue right now. The reason you can't find where it's called is because it happens on the C side of the aws crt Python bindings. The aws crt doesn't currently provide an interface for writing into an HTTP/2 stream on the Python side of things. The best we can do right now is provide a file-like object with a read that has some quirky behavior, like the one you're mentioning.

@joguSD joguSD changed the title use cpu 100% Improve writing into HTTP/2 streams without a read-able object Feb 16, 2021
@joguSD joguSD added the enhancement New feature or request label Feb 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants