Fix to show data sent by the server before the connection is terminated (working commit)