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>
313 B
313 B