title: How is connect() failure notified in epoll?
body: <p>I am writing a simple test script(python) to test a web server's performance(all this server does is HTTP redirect). Socket is set to non-blocking, and registered to an epoll instance. </p>
  
  <p>How can I know the connect() is failed because the server can't accept more connections? I am currently using EPOLLERR as the indicator. Is this correct? </p>
  
  <p>Edit:
  Assumptions:
  1) IP layer network unreachability will not be considered.</p>