Hadoopメーリングリスト

Current RPC (really IPC) relies on client side timeouts to find "dead" sockets. I propose that we have a thread that once a minute (if the connection has been idle) writes a "ping" message to the socket. The client can detect a dead socket by the resulting error on the write, so no client side timeout is required. Also note that the ipc server does not need to respond to the ping, just discard it.

なるほど,あえて書き込みを行って,書き込み失敗を生じさせることでタイムアウト処理を必要としなくなるんですね.ipcサーバ側は,そのプロトコルを無視すればよいらしいけど,通常のTLVタイプで途中まで読み込んでいたらどうするんでしょうね?特殊なコードを連続して書くとかなんでしょうかねー?