OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Reading Python HTTP server response stream bytes as soon as written

  • Thread starter Thread starter Jan Tosovsky
  • Start date Start date
J

Jan Tosovsky

Guest
I consume Python HTTP server response stream. Writing on the Python side is done in smaller batches separated by certain delays, however, actual sending data seems to be buffered: when reading the stream, bytes are available in two waves: Write/read chart

Is it possible to decrease the server buffer so that smaller chunks can be sent more often? Or is there another root cause for observed behavior?
<p>I consume Python HTTP server response stream. Writing on the Python side is done in smaller batches separated by certain delays, however, actual sending data seems to be buffered: when reading the stream, bytes are available in two waves:
<a href="https://i.sstatic.net/XIGOQMKc.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/XIGOQMKc.png" alt="Write/read chart" /></a></p>
<p>Is it possible to decrease the server buffer so that smaller chunks can be sent more often? Or is there another root cause for observed behavior?</p>
 

Latest posts

S
Replies
0
Views
1
Sergey Bakaev Rettley
S
Top