MEDIUM: connection: don't test for CO_FL_WAKE_DATA
This flag is always set when we end up here, for each and every data layer (idle, stream-interface, checks), and continuing to test it leaves a big risk of forgetting to set it as happened once already before 1.5-dev13. It could make sense to backport this into stable branches as part of the connection flag fixes, after some cool down period.
This commit is contained in:
parent
3c0cc49d30
commit
9fa1ee61cc
@ -152,8 +152,7 @@ void conn_fd_handler(int fd)
|
||||
* Note that the wake callback is allowed to release the connection and
|
||||
* the fd (and return < 0 in this case).
|
||||
*/
|
||||
if ((conn->flags & CO_FL_WAKE_DATA) &&
|
||||
(((conn->flags ^ flags) & CO_FL_NOTIFY_DATA) ||
|
||||
if ((((conn->flags ^ flags) & CO_FL_NOTIFY_DATA) ||
|
||||
((flags & (CO_FL_CONNECTED|CO_FL_HANDSHAKE)) != CO_FL_CONNECTED &&
|
||||
(conn->flags & (CO_FL_CONNECTED|CO_FL_HANDSHAKE)) == CO_FL_CONNECTED)) &&
|
||||
conn->data->wake(conn) < 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user