Added log to flush in socket.cs