Only set TCP_NODELAY if the protocol is TCP