//XXX: Same issue even trying to save buffer length state over Pendings... Wtf is going on here?
macro_rules!ready{
(try$poll:expr)=>{
match$poll{
Poll::Pending=>{
this.buffer.resize(done,0);
returnPoll::Pending;
},
Poll::Ready(Ok(x))=>x,
err=>{
this.buffer.resize(done,0);
returnerr;
}
}
}
}
// XXX: V Same issue, runs the above code twice when re-polling after Pending. We need to make sure we jump back to this point in the code following a Pending poll to `stream.poll_read`, but I have no fucking clue how to do this? Eh...... We'll probably need to design the code differently. There is a lot of state that gets lost here and idk how to preserve it.... I hate this.