mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-10 09:21:35 -04:00
MEDIUM: connection: don't call the data->init callback upon error
We don't call ->init() anymore upon error since we already call ->wake().
This commit is contained in:
parent
9683e9a05f
commit
78eaebed13
1 changed files with 0 additions and 9 deletions
|
|
@ -114,15 +114,6 @@ int conn_fd_handler(int fd)
|
|||
}
|
||||
|
||||
leave:
|
||||
/* we may need to release the connection which is an embryonic session
|
||||
* in case of failure. For this we use the init callback which will
|
||||
* detect the error and clean everything up.
|
||||
*/
|
||||
if ((conn->flags & (CO_FL_ERROR|CO_FL_INIT_DATA)) == (CO_FL_ERROR|CO_FL_INIT_DATA)) {
|
||||
conn->data->init(conn);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* The wake callback may be used to process a critical error and abort the
|
||||
* connection. If so, we don't want to go further as the connection will
|
||||
* have been released and the FD destroyed.
|
||||
|
|
|
|||
Loading…
Reference in a new issue