Revision 7c4d6c7b lib/http/__init__.py

b/lib/http/__init__.py
367 367
  # TODO: event_poll/event_check/override
368 368
  if op in (SOCKOP_SEND, SOCKOP_HANDSHAKE):
369 369
    event_poll = select.POLLOUT
370
    event_check = select.POLLOUT
371 370

  
372 371
  elif op == SOCKOP_RECV:
373 372
    event_poll = select.POLLIN
374
    event_check = select.POLLIN | select.POLLPRI
375 373

  
376 374
  elif op == SOCKOP_SHUTDOWN:
377 375
    event_poll = None
378
    event_check = None
379 376

  
380 377
    # The timeout is only used when OpenSSL requests polling for a condition.
381 378
    # It is not advisable to have no timeout for shutdown.

Also available in: Unified diff