| 1241 | } |
| 1242 | |
| 1243 | void |
| 1244 | UnixNetVConnection::clear() |
| 1245 | { |
| 1246 | // clear timeout variables |
| 1247 | next_inactivity_timeout_at = 0; |
| 1248 | next_activity_timeout_at = 0; |
| 1249 | inactivity_timeout_in = 0; |
| 1250 | active_timeout_in = 0; |
| 1251 | |
| 1252 | // clear variables for reuse |
| 1253 | this->mutex.clear(); |
| 1254 | action_.mutex.clear(); |
| 1255 | got_remote_addr = false; |
| 1256 | got_local_addr = false; |
| 1257 | attributes = 0; |
| 1258 | read.vio.mutex.clear(); |
| 1259 | write.vio.mutex.clear(); |
| 1260 | flags = 0; |
| 1261 | nh = nullptr; |
| 1262 | read.triggered = 0; |
| 1263 | write.triggered = 0; |
| 1264 | read.enabled = 0; |
| 1265 | write.enabled = 0; |
| 1266 | read.vio.cont = nullptr; |
| 1267 | write.vio.cont = nullptr; |
| 1268 | read.vio.vc_server = nullptr; |
| 1269 | write.vio.vc_server = nullptr; |
| 1270 | options.reset(); |
| 1271 | if (netvc_context == NET_VCONNECTION_OUT) { |
| 1272 | read.vio.buffer.clear(); |
| 1273 | write.vio.buffer.clear(); |
| 1274 | } |
| 1275 | closed = 0; |
| 1276 | netvc_context = NET_VCONNECTION_UNSET; |
| 1277 | ink_assert(!read.ready_link.prev && !read.ready_link.next); |
| 1278 | ink_assert(!read.enable_link.next); |
| 1279 | ink_assert(!write.ready_link.prev && !write.ready_link.next); |
| 1280 | ink_assert(!write.enable_link.next); |
| 1281 | ink_assert(!link.next && !link.prev); |
| 1282 | } |
| 1283 | |
| 1284 | void |
| 1285 | UnixNetVConnection::free_thread(EThread *t) |
no test coverage detected