So here\'s the issue:
The stream isn\'t writing at the right time and is unable to get a response from my server.
I know I\'m writing the right data, because when I stop th
When sending short chunks of data always flush the buffer after each write which you want to have an immediate effect.
I don't see you doing that in your code.
If you don't do it then the buffer will be flushed only when it is full or the stream is closed.