amplab/tachyon — pull request #366 by mubarak (2014-08-17 04:06:41+00:00)
Title: [TACHYON-82] Retrieving byte buffer from remote machine can leak file handles in TachyonFile

If there is an IOException thrown by the retrieveByteBufferFromRemoteMachine() then file handles are leaked because of the initialization of the Socket which is never closed in finally block.
```
SocketChannel socketChannel = SocketChannel.open();
socketChannel.connect(address);
```
If there is an IOException from
```
SocketChannel#connect
DataServerMessage#send
DataServerMessage#recv
```
then the Socket is not closed and file handles are leaked.