yyyyxxxx> yyyyxxxx> yyyy...The problem I have is with the speed of the communication. I measure the time it takes the server to read the client's request, and it is about 40ms. What is most..." />

Java socket: two newlines faster than one newline

I have a simple client-server application. Server is in Java, client in Python3. The server waits for a single client, then communicates with it for eternity in the following way. Server reads a line from the client, and the sends the message "yyyy" back. Thus, from the client side, the conversation could look something like this:

xxxx

> yyyy

xxxx

> yyyy

xxxx

> yyyy

...

The problem I have is with the speed of the communication. I measure the time it takes the server to read the client's request, and it is about 40ms. What is most...

Read More »

By: StackOverFlow - Tuesday, 20 November

Related Posts