This branch fixes two bugs in the key agreement connection code that can cause connections not to be closed:
ReadableTask#call()
waiting for alice
to become true or data to become available).closePending()
is called, and the attempt subsequently succeeds, the connection is never closed (the Future's value can't be retrieved because it's been cancelled).Could be backported.
Closes #283 (closed)