View | Details | Raw Unified | Return to bug 56518
Collapse All | Expand All

(-)a/java/org/apache/tomcat/util/net/NioChannel.java (+2 lines)
Lines 120-125 public class NioChannel implements ByteChannel{ Link Here
120
     */
120
     */
121
    @Override
121
    @Override
122
    public int write(ByteBuffer src) throws IOException {
122
    public int write(ByteBuffer src) throws IOException {
123
        // fix BZ 56518, clear thread interrupted status before write to NIO socket.
124
        Thread.interrupted();
123
        return sc.write(src);
125
        return sc.write(src);
124
    }
126
    }
125
127
(-)a/java/org/apache/tomcat/util/net/SecureNioChannel.java (+2 lines)
Lines 471-476 public class SecureNioChannel extends NioChannel { Link Here
471
     */
471
     */
472
    @Override
472
    @Override
473
    public int write(ByteBuffer src) throws IOException {
473
    public int write(ByteBuffer src) throws IOException {
474
        // fix BZ 56518, clear thread interrupted status before write to NIO socket.
475
        Thread.interrupted();
474
        if ( src == this.netOutBuffer ) {
476
        if ( src == this.netOutBuffer ) {
475
            //we can get here through a recursive call
477
            //we can get here through a recursive call
476
            //by using the NioBlockingSelector
478
            //by using the NioBlockingSelector

Return to bug 56518