Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] Jetty 8.1.9 - Using super.shutdownOutput on SSLSocket?


Just browsing through source during the course of my investigation on this bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=416971

When I find this in jetty source:

    /*
     * @see org.eclipse.jetty.io.bio.StreamEndPoint#shutdownOutput()
     */
    @Override
    public void shutdownOutput() throws IOException
    {
        if (_socket instanceof SSLSocket)
            super.shutdownOutput();
        else
            shutdownSocketOutput();
    }


But as far as I am aware, you cannot do a half close on an SSL Socket?
So am I misunderstanding something here? Wouldn't it just be better to close the socket using _socket.close() instead?

I am referring to this particular information:
http://stackoverflow.com/a/6425509/1682002

Please reference:
http://docs.oracle.com/javase/6/docs/api/java/net/Socket.html#shutdownOutput()
http://docs.oracle.com/javase/6/docs/api/java/net/Socket.html#close()


Back to the top