Mercurial Hosting > luan
comparison src/org/eclipse/jetty/http/HttpGenerator.java @ 1071:b4ba8a4d5a16
remove JBuffer.space()
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Thu, 10 Nov 2016 02:13:28 -0700 |
| parents | a44fc6b53757 |
| children | 6b7ff30bb990 |
comparison
equal
deleted
inserted
replaced
| 1070:a44fc6b53757 | 1071:b4ba8a4d5a16 |
|---|---|
| 215 if (_content != null && _content.hasRemaining() || _bufferChunked) | 215 if (_content != null && _content.hasRemaining() || _bufferChunked) |
| 216 throw new IllegalStateException("FULL"); | 216 throw new IllegalStateException("FULL"); |
| 217 } | 217 } |
| 218 | 218 |
| 219 _contentWritten -= _buffer.position(); | 219 _contentWritten -= _buffer.position(); |
| 220 /* | |
| 221 // Handle the _content | |
| 222 if (_head) | |
| 223 return Integer.MAX_VALUE; | |
| 224 | |
| 225 return _buffer.space(); | |
| 226 */ | |
| 227 } | 220 } |
| 228 | 221 |
| 229 public boolean isBufferFull() | 222 public boolean isBufferFull() |
| 230 { | 223 { |
| 231 // Should we flush the buffers? | 224 // Should we flush the buffers? |
