Re: Sequence number mismatch and Frame Syntax problem of BEEP Frame
[email protected] (Jonas Borgström) 16 Aug 2002 11:57:45 +0200
| Newsgroups | gmane.network.beep.roadrunner.general |
|---|---|
| Message-ID | <[email protected]> |
Rajesh Madabhushi <[email protected]> writes: > Hi, > > I will be using both RoadRunner Beep Core and Road Runner IDXP to test > my software. > Established session with RoadRunner and created an 'Alert' channel. > Sending 'Alert' messages continuously in a loop on the channel. > > But after some time, I am getting seqno mismatch error and connection > got disconnected. > For debugging purpose, did following. > 1.added printf statement after updating of the channel incoming > sequence sequence number, that is after 'channel->seq_in += > frame->size' statement of frame_divider() function definitions of > rr-tcpconnection.c file, added printf("#####Next seq no %d\r\n, > channel->seq_in). > 2.ALSO KEPT sleep(1) in 'in_event()' function definition, just in a > trail to know the problem. > Hi Rajesh, Can you record the BEEP traffic with this command: RR_DEBUG='NET:FILE_NET=net.log' ./rridxp-server and make the net.log file accessible through HTTP? Without a full BEEP traffic dump and without any test case it is almost impossible to reproduce or find the bug. *SNIP* > > I ALSO GETTING SOME TIMES 'FRAME SYNTAX ERROR' - Failed in checking of > conditional statement 'if (strncmp(body + frame->size, "END",3) != 0)' > in 'parse' function of > rr-frame.c file. But as for as my knowledge is concerted, there is no > chance for my side to miss any payload portion between BEEP header and > 'END' But right now I don't have debug output for this error. If you > want I can try to capture the results and send to you. If the above line fails, it probably means that the frame size value is wrong. Try to log the network traffic and verify that the frame size value corresponds with the payload length. > > HOWEVER IN CASE OF SENDING JUST ONE FRAME AT A TIME INSTEAD IN A LOOP, > NOT GETTING ANY ERRORS, > > Could any body suggest, reason for getting the above errors? > It looks like there might be some race condition somewhere. / Jonas -- Jonas Borgström [email protected] CodeFactory AB http://www.codefactory.se/ Office: +46 (0)90 71 86 10 Cell: +46 (0)70 248 89 58