java - Smtp server issue starttls command to sslsocket but when startHandshake() read time out -


    public static socket createssl(socket socket) throws ioexception {     sslsocketfactory factory = (sslsocketfactory) sslsocketfactory.getdefault();     sslsocket sslsocket = (sslsocket) (factory.createsocket(socket, socket         .getinetaddress().gethostaddress(), socket.getport(), true));     sslsocket.setuseclientmode(false);     sslsocket.starthandshake();     return sslsocket;   } 

the sslsocket read time out when sslsocket.starthandshake(), should solve problem?


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -