Return the number of bytes actually written to the socket. This includes chunking, compression, etc. but excludes headers. @param flush if true will perform a buffer flush first @return the number of bytes actually written to the socket
(boolean flush)
| 244 | * @return the number of bytes actually written to the socket |
| 245 | */ |
| 246 | public long getBytesWritten(boolean flush) { |
| 247 | if (flush) { |
| 248 | try { |
| 249 | outputBuffer.flush(); |
| 250 | } catch (IOException ioe) { |
| 251 | // Ignore - the client has probably closed the connection |
| 252 | } |
| 253 | } |
| 254 | return getCoyoteResponse().getBytesWritten(flush); |
| 255 | } |
| 256 | |
| 257 | /** |
| 258 | * Set the application commit flag. |
nothing calls this directly
no test coverage detected