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