/**
* Creates a new client for the given URL and handler
*/
private NetClient createClient(final ConnectionParameters params, final SocketWrapper socketFromClient, final URI url, final Buffer received) {
NetClient netClient = vertx.createNetClient();
return netClient.connect(url.getPort(), url.getHost(), new Handler<AsyncResult<NetSocket>>() {
public void handle(final AsyncResult<NetSocket> asyncSocket) {
if( !asyncSocket.succeeded() ) {
handleConnectFailure(socketFromClient, String.format("Could not connect to '%s'", url));
} else {