Thanks for the details, it looks like your script is feeding the congestion, I suggest to not wait before reading data otherwise it will always reproduce the issue.
There is a quick solution that you could try, it's to increase the socket buffer size in MonaServer configuration, but this will only hide the problem for a while :
To use it you can create or modify the .ini file of MonaServer and increase the value of the bufferSize :
[RTMP]
; bufferSize, base parameters for recvBufferSize and sendBufferSize
bufferSize=2097120
Note that for all protocols the parameters recvBufferSize and sendBufferSize override the bufferSize parameter so you can remove them if they are defined.
For the query string ?audio=false it must be set after the stream name, for example if your stream is called "test" it will be test?audio=false.
I hope this will help you
Regards
Thomas