commit | f31fb07958fa22566cad2bbab1b16aa3ac0ac3e5 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Fri Mar 13 00:32:20 2015 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Fri Mar 13 00:32:20 2015 +0100 |
tree | 5d83c487841482f8539c6a644efdd5608d445ced | |
parent | 0a03c0f022faf2773995fc8b9d14256c8a306e5a [diff] |
MEDIUM: connection: make conn_drain() perform more controls Currently si_idle_conn_null_cb() has to perform some low-level checks over the file descriptor and the connection configuration that should only belong to conn_drain(). Let's move these controls there. The function now automatically checks for errors and hangups on the file descriptor for example, and disables recv polling if there's no drain function at the control layer.