ioservice with multiple threads

Can't capture ref to the share_ptr inside lambda for async_connect. The ways I could see around this would be for the node to add/remove itself from the pending set or to initiate the connection itself; as Node is a struct, this doesn't seem appropriate.