@override
| 330 | protected: |
| 331 | // @override |
| 332 | void on_accept(acl::socket_stream* stream) |
| 333 | { |
| 334 | stream->set_rw_timeout(60); |
| 335 | printf("accept one fd=%d\r\n", stream->sock_handle()); |
| 336 | |
| 337 | if (conf_) { |
| 338 | // ����ʹ�� SSL ��ʽ����������Ҫ�� SSL IO ������ע�� |
| 339 | // �����������������У����� ssl io �滻 stream ��Ĭ�� |
| 340 | // �ĵײ� IO ���� |
| 341 | |
| 342 | logger("begin setup ssl hook..."); |
| 343 | |
| 344 | acl::sslbase_io* ssl = conf_->create(false); |
| 345 | if (stream->setup_hook(ssl) == ssl) { |
| 346 | logger_error("setup_hook error!"); |
| 347 | ssl->destroy(); |
| 348 | } else { |
| 349 | logger("setup ssl hook ok"); |
| 350 | } |
| 351 | } |
| 352 | |
| 353 | do_run(stream); |
| 354 | } |
| 355 | |
| 356 | // @override |
| 357 | void proc_on_init() |
nothing calls this directly
no test coverage detected