Write wraps the underlying ReadWriteCloser's Write method and keeps the session alive with the "output" traffic type.
(p []byte)
| 449 | |
| 450 | // Write wraps the underlying ReadWriteCloser's Write method and keeps the session alive with the "output" traffic type. |
| 451 | func (t *trafficMonitor) Write(p []byte) (n int, err error) { |
| 452 | t.fwd.KeepAlive(trafficTypeOutput) |
| 453 | return t.rwc.Write(p) |
| 454 | } |
| 455 | |
| 456 | // Close closes the underlying ReadWriteCloser. |
| 457 | func (t *trafficMonitor) Close() error { |