You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I send chunks of length <= 9 bytes the message is received correctly by the client, otherwise when sending chunks of length >= 10 bytes, it seems that some of them are not received and the message remains stuck in the client waiting indefinitely
In attachment an example of the complete code to reproduce the issue, but in short, the following code:
# writing 5 chunks of length 10foriinrange(5):
text=str(i+1) *10# concatenate 10 charschunk='{0:d}\r\n'.format(len(text)) +text+'\r\n'self.wfile.write(chunk.encode(encoding='utf-8'))
# writing close sequenceclose_chunk='0\r\n\r\n'self.wfile.write(close_chunk.encode(encoding='utf-8'))
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: