sockets - Java SSLSocket write SocketException after new connection -


here code:

            socket s = server.accept();             s.setsotimeout(1000);             dataoutputstream out = new dataoutputstream(s.getoutputstream());             out.flush();             datainputstream in = new datainputstream(s.getinputstream());             system.out.println(s.isclosed());             out.write(("* ok " + ((string)host.getconfig().get("domain")).split(",")[0] + " imap ready." + crlf).getbytes());             out.flush();             host.addworkimap(s, in, out, server instanceof sslserversocket); 

which on line writes string, java.net.socketexception: software caused connection abort: recv failed.

(the server sslserversocket).

i know fact socket not closed, call isclosed() returns false. furthermore, thunderbird timing out after error(i'm writing imap server).

stack trace:

[12:54:54] java.net.socketexception: software caused connection abort: recv failed @ java.net.socketinputstream.socketread0(native method) @ java.net.socketinputstream.read(socketinputstream.java:129) @ com.sun.net.ssl.internal.ssl.inputrecord.readfully(inputrecord.java:422) @ com.sun.net.ssl.internal.ssl.inputrecord.read(inputrecord.java:460) @ com.sun.net.ssl.internal.ssl.sslsocketimpl.readrecord(sslsocketimpl.java:863) @ com.sun.net.ssl.internal.ssl.sslsocketimpl.waitforclose(sslsocketimpl.java:1571) @ com.sun.net.ssl.internal.ssl.handshakeoutstream.flush(handshakeoutstream.java:103) @ com.sun.net.ssl.internal.ssl.handshaker.sendchangecipherspec(handshaker.java:689) @ com.sun.net.ssl.internal.ssl.serverhandshaker.sendchangecipherandfinish(serverhandshaker.java:1279) @ com.sun.net.ssl.internal.ssl.serverhandshaker.clientfinished(serverhandshaker.java:1239) @ com.sun.net.ssl.internal.ssl.serverhandshaker.processmessage(serverhandshaker.java:225) @ com.sun.net.ssl.internal.ssl.handshaker.processloop(handshaker.java:593) @ com.sun.net.ssl.internal.ssl.handshaker.process_record(handshaker.java:529) @ com.sun.net.ssl.internal.ssl.sslsocketimpl.readrecord(sslsocketimpl.java:943) @ com.sun.net.ssl.internal.ssl.sslsocketimpl.performinitialhandshake(sslsocketimpl.java:1188) @ com.sun.net.ssl.internal.ssl.sslsocketimpl.writerecord(sslsocketimpl.java:654) @ com.sun.net.ssl.internal.ssl.appoutputstream.write(appoutputstream.java:100) @ java.io.dataoutputstream.write(dataoutputstream.java:90) @ java.io.filteroutputstream.write(filteroutputstream.java:80) @ mail.smtp.threadacceptsmtp.run(threadacceptsmtp.java:65) 


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -