メッセージを複数回(ランダムに)送信するとTCPリスナーがクラッシュし、この例外がスローされます。ここで 例外です: System.IO.IOException: Unable to read data from the transport connection: An
established connection was aborted by the software in your host
を接続しているかどうかを確認する方法: s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(host, port)
s.send("some data")
# don't close socket just yet...
# do some other stuff with the data (normal str