The bug was caused by
25b0ce4. Other symptoms are:
assertion failed: store.cc:1793: "isEmpty()"
assertion failed: FwdState.cc:501: "serverConnection() == conn"
assertion failed: FwdState.cc:1037: "!opening()"
This happened because FwdState::connectStart() was called prematurely,
when the previous connection returned by HappyConnOpener is open
(but FwdState::connOpener is nil).
destinations->addPath(path);
- if (Comm::IsConnOpen(serverConn)) {
+ if (destinationReceipt) {
// We are already using a previously opened connection, so we cannot be
// waiting for connOpener. We still receive destinations for backup.
Must(!opening());
// if all of them fail, forwarding as whole will fail
Must(!selectionError); // finding at least one path means selection succeeded
- if (Comm::IsConnOpen(serverConn)) {
+ if (destinationReceipt) {
// We are already using a previously opened connection, so we cannot be
// waiting for connOpener. We were receiving destinations for backup.
Must(!opening());