Пример #1
0
 /**
  * Return the number of bytes the actually written to the socket. This includes chunking,
  * compression, etc. but excludes headers.
  */
 public long getBytesWritten(boolean flush) {
   if (flush) {
     try {
       outputBuffer.flush();
     } catch (IOException ioe) {
       // Ignore - the client has probably closed the connection
     }
   }
   return coyoteResponse.getBytesWritten(flush);
 }