mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
There's no reason to do this async, and far easier to follow using normal read/write. The previous parsing was deeply questionable, using substring searches only, and relying on the fact that a single non-blocking read would get the entire response. This is changed to do (somewhat) proper parsing using ccan/rbuf. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>