From: Rusty Russell Date: Wed, 31 May 2017 03:05:45 +0000 (+0930) Subject: io: fix nasty io_wake corner case. X-Git-Url: http://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=d00c9d1be5a56fbf990882f9a6da5704b3f1ea75;hp=d00c9d1be5a56fbf990882f9a6da5704b3f1ea75 io: fix nasty io_wake corner case. If we're duplex and one io_always callback makes the other io_always, we screwed up and hit an assertion later when the conn was in the always list but didn't actually want to be. io_wake() uses io_always(), so this is how it happened. Writing a test case for this was a bit fun, too. Signed-off-by: Rusty Russell ---