Improved SocketSession