Connection: guard possible direct socket write