test for connection alive using sockets
mising bracket is fixed