| 81 | } |
| 82 | |
| 83 | void no_write_thread ( |
| 84 | ) |
| 85 | { |
| 86 | try |
| 87 | { |
| 88 | std::unique_ptr<connection> con(get_connection()); |
| 89 | |
| 90 | // just do nothing until the connection closes |
| 91 | char ch; |
| 92 | con->read(&ch, 1); |
| 93 | dlog << LDEBUG << "silent connection finally closing"; |
| 94 | } |
| 95 | catch (exception& e) |
| 96 | { |
| 97 | test_failed = true; |
| 98 | dlog << LERROR << e.what(); |
| 99 | } |
| 100 | } |
| 101 | |
| 102 | public: |
| 103 | sockets2_tester ( |