> That's the wrong way to do it.  Right Way is to A) move to NBIO, B)
> quit treating a connection as a state machine.  
> 
> As for wasting resources: Establishing a connection is expensive.  Sending
> a message over an established connection is less so.  If I need to send two
> queries to another node at the same time, which is cheaper?  
> 
> A) establish two connections, send two queries, teardown x2.  Other node 
> establishes
> connections for reply, sends reply.

We do this.  Connections aren't state machines, they are pipes that may be
selected for transmitting any message from any transaction so long as
that connection isn't already busy.

> 
> B) establish one connection, send two queries, (possible teardown)  Remote 
> node
> sends two replies (possible re-establish)

And this.

> 
> No, it's not message based, it's state-based with verbose state labels.
> There's quite a large difference.
Wrong.

        Scott

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: 
<https://emu.freenetproject.org/pipermail/devl/attachments/20020805/33005eb8/attachment.pgp>

Reply via email to