| 61 | } |
| 62 | |
| 63 | void no_write_thread ( |
| 64 | ) |
| 65 | { |
| 66 | try |
| 67 | { |
| 68 | std::unique_ptr<connection> con(connect("127.0.0.1", port_num)); |
| 69 | |
| 70 | // just do nothing until the connection closes |
| 71 | char ch; |
| 72 | con->read(&ch, 1); |
| 73 | dlog << LDEBUG << "silent connection finally closing"; |
| 74 | } |
| 75 | catch (exception& e) |
| 76 | { |
| 77 | test_failed = true; |
| 78 | dlog << LERROR << e.what(); |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | public: |
| 83 | sockets2_tester ( |