Do as the XXX suggests and avoid starting the local peer until the remote peer is connected.  Otherwise we would blow up when close_peer() is called while we are still connecting to the remote peer.  Now, maybe the right thing to do is to fix that case to work properly so we can buffer lots of data from a client that is starting out with a lot of data, but really that's an uncommon case so for now do the easy thing.
Do as the XXX suggests and avoid starting the local peer until the remote peer
is connected.  Otherwise we would blow up when close_peer() is called while we
are still connecting to the remote peer.  Now, maybe the right thing to do is to
fix that case to work properly so we can buffer lots of data from a client that
is starting out with a lot of data, but really that's an uncommon case so for
now do the easy thing.


wanproxy/wanproxy,wanproxy/wanproxy,wanproxy/wanproxy