| 508 | } |
| 509 | |
| 510 | void |
| 511 | TcpConnection::onError() |
| 512 | { |
| 513 | JTRACE("Error.") (id()); |
| 514 | _type = TCP_ERROR; |
| 515 | JTRACE("Creating dead socket.") (_fds[0]) (_fds.size()); |
| 516 | const vector<char> &buffer = |
| 517 | KernelBufferDrainer::instance().getDrainedData(_id); |
| 518 | restoreDupFds(_makeDeadSocket(&buffer[0], buffer.size())); |
| 519 | } |
| 520 | |
| 521 | void |
| 522 | TcpConnection::drain() |
no test coverage detected