This needs to be called before the ET_NET threads are started.
| 255 | |
| 256 | // This needs to be called before the ET_NET threads are started. |
| 257 | void |
| 258 | UnixNetProcessor::init() |
| 259 | { |
| 260 | naVecMutex = new_ProxyMutex(); |
| 261 | |
| 262 | netHandler_offset = eventProcessor.allocate(sizeof(NetHandler)); |
| 263 | pollCont_offset = eventProcessor.allocate(sizeof(PollCont)); |
| 264 | |
| 265 | if (0 == accept_mss) { |
| 266 | REC_ReadConfigInteger(accept_mss, "proxy.config.net.sock_mss_in"); |
| 267 | } |
| 268 | |
| 269 | // NetHandler - do the global configuration initialization and then |
| 270 | // schedule per thread start up logic. Global init is done only here. |
| 271 | NetHandler::init_for_process(); |
| 272 | NetHandler::active_thread_types[ET_NET] = true; |
| 273 | eventProcessor.schedule_spawn(&initialize_thread_for_net, ET_NET); |
| 274 | |
| 275 | RecData d; |
| 276 | d.rec_int = 0; |
| 277 | change_net_connections_throttle(nullptr, RECD_INT, d, nullptr); |
| 278 | } |
| 279 | |
| 280 | void |
| 281 | UnixNetProcessor::init_socks() |
no test coverage detected