comparison src/org/eclipse/jetty/io/nio/ChannelEndPoint.java @ 1005:0e96ce3db20a

remove HttpBuffers
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 23 Oct 2016 02:42:05 -0600
parents 4f2d04c72781
children 921c25a05eaa
comparison
equal deleted inserted replaced
1004:3fa54d9d19cd 1005:0e96ce3db20a
156 } 156 }
157 157
158 @Override 158 @Override
159 public void close() throws IOException 159 public void close() throws IOException
160 { 160 {
161 //Thread.dumpStack();
161 LOG.debug("close {}",this); 162 LOG.debug("close {}",this);
162 _channel.close(); 163 _channel.close();
163 } 164 }
164 165
165 @Override 166 @Override
166 public int fill(Buffer buffer) throws IOException 167 public int fill(Buffer buffer) throws IOException
167 { 168 {
168 if (_ishut) 169 if (_ishut)
169 return -1; 170 return -1;
170 Buffer buf = buffer.buffer(); 171 Buffer buf = buffer.buffer();
171 int len=0; 172 int len = 0;
172 if (buf instanceof NIOBuffer) 173 if (buf instanceof NIOBuffer)
173 { 174 {
174 final NIOBuffer nbuf = (NIOBuffer)buf; 175 final NIOBuffer nbuf = (NIOBuffer)buf;
175 final ByteBuffer bbuf=nbuf.getByteBuffer(); 176 final ByteBuffer bbuf = nbuf.getByteBuffer();
176 177
177 //noinspection SynchronizationOnLocalVariableOrMethodParameter 178 //noinspection SynchronizationOnLocalVariableOrMethodParameter
178 try 179 try
179 { 180 {
180 synchronized(bbuf) 181 synchronized(bbuf)