Bidirectional transfer on the same channel

Andrea Campi <[email protected]> Thu, 7 Nov 2002 15:53:54 +0100
Newsgroups gmane.network.beep.roadrunner.general
Organization I.NET S.p.A.
Message-ID <[email protected]>
Hi all,

I need a little clarification. Simplifying, I want my client and my
server to both send a MSG as soon as possible after the channel is
up (think handshake). Something like:

I: MSG 3 0 . xxx xxx
I: ...

L: MSG 3 0 . xxx xxx
L: ...

L: RPY 3 0 . xxx xxx
L: ...

I: RPY 3 0 . xxx xxx
I: ...


However, this doesn't seem to work, as out_queue_push_message (called
by rr_channel_send_message) will find the slot reserved for the RPY
to the first message.

In fact, if I manually assign msg->msgno so that:

I: MSG 3 0 . xxx xxx
I: ...

L: MSG 3 1 . xxx xxx
L: ...

L: RPY 3 1 . xxx xxx
L: ...

I: RPY 3 0 . xxx xxx
I: ...

Everything works fine.


Now: is this a bug, is this by design or am I doing something wrong?
I would say a bug, since RFC3080, section 2.7 explicitely says
"message numbers are unidirectionally significant" and several
examples. It would probably be a good idea not to queue outgoing MSG,
or provide separate a queue.

Bye,
	Andrea

-- 
Andrea Campi                              mailto:[email protected]
I.NET S.p.A. - BT Ignite                  http://www.inet.it
Technical Dept. - R&D			  phone: +39 02 32863 ext 1
v. Darwin, 85 - I-20019			  fax: +39 02 32863 ext 7705
Settimo Milanese (MI), Italy