[Vortex] weird behavior or misunderstanding of beep/vortex?

Gustavo Sverzut Barbieri Gustavo.Barbieri at indt.org.br
Thu Jun 8 15:35:23 CEST 2006


On Thursday 08 June 2006 03:31, ext Francis Brosnan Blazquez wrote:
> El mié, 07-06-2006 a las 19:33 -0300, Gustavo Sverzut Barbieri escribió:
> > Hello,
>
> Hi Gustavo!
>
> > I'm developing a software using BEEP/Vortex and both client and server
> > must
> > send messages. I mean, differently from HTTP, where just client can
> > start the
> > requisition, in my case, server could also send information to client
> > without
> > it asking for... you can understand this as both acting as server and
> > client.
> > This is a requirement for various reasons and we don't want to follow
> > the
> > "pooling" behaviour of AJAX apps.
>
> Ok.
>
> > However, I'm with problems using vortex for this purpose. What happens
> > right
> > now is:
> >
> > #### "client"
> > beep_client_connect: connected to 127.0.0.1:12345, channel #5
> > connection_send_msg: 127.0.0.1:12345 channel#5
> > channel_send_msg: channel#5
> > channel_send_msg: channel#5 wait replay #0...
> > channel_send_msg: channel#5 got reply #0: 1
> >
> > <notice no message is received after this point!>
>
> I think the problem is here, without taking a look into the source code.
>

Ok, I was about to send you the code of my modified 
vortex-simple-{listener,client}.c and in the way, instead of copying it from 
my laptop to this machine, I opted to re-code it, as  simple as possible... 
and the problem didn't show. Weird, I think at first... but further 
inverstigation shows that what triggers the problem is the size of reply 
message sent from server to client in frame_receive()!

In my software I was using "1", and when I did my first test, also used it... 
However, when coding the exactly same thing, in order to keep patch small, I 
left it "Received OK: ..."... and the problem goes away!

Attached file patches both vortex-simple-{client,listener}.c and you can 
undefine NO_BUG in listener to get the bug.

Can you fix it?

Thanks!

-- 
Gustavo Sverzut Barbieri
------------------------
INdT, Recife, Brazil

Jabber: barbieri at gmail.com
   MSN: barbieri at gmail.com
  ICQ#: 17249123
 Skype: gsbarbieri
Mobile: +55 (81) 9927 0010
 Phone:  +1 (347) 624 6296; 08122692 at sip.stanaphone.com
   GPG: 0xB640E1A2 @ wwwkeys.pgp.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug_show.patch
Type: text/x-diff
Size: 3087 bytes
Desc: not available
Url : http://lists.aspl.es/pipermail/vortex/attachments/20060608/db37bd5a/bug_show.bin


More information about the Vortex mailing list