2829303132333435363738
public Socket createObject() throws PoolException { Socket s = super.createObject(); if (!useSsl) return s; try { return s.ssl(false); } catch (IOException e) { s.close(); throw new PoolException(name() + " failed to create SSL socket", e); } }