mirror of
https://github.com/jlengrand/vert.x.git
synced 2026-03-10 08:51:19 +00:00
Improve HTTP/1 metrics reporting
This commit is contained in:
@@ -240,7 +240,7 @@ abstract class Http1xConnectionBase<S extends WebSocketImplBase<S>> extends Conn
|
||||
|
||||
@Override
|
||||
protected void reportsBytesWritten(Object msg) {
|
||||
if (msg instanceof HttpObject) {
|
||||
if (msg instanceof HttpObject || msg instanceof FileRegion || msg instanceof ChunkedFile) {
|
||||
bytesWritten += getBytes(msg);
|
||||
} else if (msg instanceof WebSocketFrame) {
|
||||
// Only report WebSocket messages since HttpMessage are reported by streams
|
||||
|
||||
Reference in New Issue
Block a user