Hey, noob question here: It looks like everytime we read/write something from/to a connection, we close it. Shouldn't it be more efficient if we keep the connection alive?
As discussed in the other thread, io.copy indeed copies data until EOF is reached. I didn't notice that but was thinking it just copy data once... Sorry for the confusion.
Hey, noob question here: It looks like everytime we read/write something from/to a connection, we close it. Shouldn't it be more efficient if we keep the connection alive?