Fixed a bug when there are too many open sockets.

Also, some minor corrections to shutdown() in ConnectionHandler.

Change-Id: I937f200c14c185b0867f997645d8b288a19b9889
2 files changed