Xymon Mailing List Archive search

Hobbit client data truncated by server?!

3 messages in this thread

list Mirko Saam · Thu, 16 Mar 2006 13:54:42 +0100 ·
Hi,
after reading the docs, searching the list, searching the source
code i have no idea, what is going wrong here:

Data that is sent by the hobbit client is truncated somewhere.
My Hobbit client messages are about 30kB.
The client sents the message to the server without loss (verified with netcat).

Monitoring the client channel via
  [clientlogger]
  CMD hobbitd_channel --channel=client cat
in hobbitlaunch.cfg results in:
DATADATADATA
DATADATADATA
DATADATAD

... DATA TRUNCATED ...
The received data is cut at approx 10kB. All MSG_* variables that limit
communication are clearly above this value (MSG_CLIENT=256*1024). I have
set anything to debug with no results. I did not find the place in the source
code where the "DATA TRUNCATED" message is generated, so i can't trace back
why it is truncated...

Help me please!

Regards,
Mirko


This message was sent using IMP, the Internet Messaging Program.
list Henrik Størner · Mon, 29 May 2006 14:11:45 +0200 ·
Somewhat late reply, but I'm cleaning up mails prior to the 4.2 release.

Since you see the "... DATA TRUNCATED ..." string inside the client message, 
I have a strong suspicion that it was sent with the "bb" utility from
the original Big Brother package.

This text doesn't appear anywhere in the Hobbit code :-)


Regards,
Henrik
quoted from Mirko Saam


On Thu, Mar 16, 2006 at 01:54:42PM +0100, Mirko Saam wrote:
Hi,
after reading the docs, searching the list, searching the source
code i have no idea, what is going wrong here:

Data that is sent by the hobbit client is truncated somewhere.
My Hobbit client messages are about 30kB.
The client sents the message to the server without loss (verified with netcat).

Monitoring the client channel via
  [clientlogger]
  CMD hobbitd_channel --channel=client cat
in hobbitlaunch.cfg results in:
DATADATADATA
DATADATADATA
DATADATAD

... DATA TRUNCATED ...
The received data is cut at approx 10kB. All MSG_* variables that limit
communication are clearly above this value (MSG_CLIENT=256*1024). I have
set anything to debug with no results. I did not find the place in the source
code where the "DATA TRUNCATED" message is generated, so i can't trace back
why it is truncated...

Help me please!

Regards,
Mirko


This message was sent using IMP, the Internet Messaging Program.

-- 

Henrik Storner
list Ralph Mitchell · Mon, 29 May 2006 23:05:33 -0500 ·
From src/bb.h in bb18b3:

    #define MAXLINE  8192   /* CHANGED FROM 256 - MAX LINE SIZE */

This definition is used multiple places, including:

   static char msgbuf[MAXLINE];   /* INCOMING MESSAGE BUFFER */

and

   strcat(msgbuf, "\n\n... DATA TRUNCATED ...\n"); /* 25 chars ! */

after discovering that the message length is bigger than MAXLINE+30.


Ralph Mitchell
quoted from Henrik Størner


On 5/29/06, Henrik Stoerner <user-ce4a2c883f75@xymon.invalid> wrote:
Somewhat late reply, but I'm cleaning up mails prior to the 4.2 release.

Since you see the "... DATA TRUNCATED ..." string inside the client
message,
I have a strong suspicion that it was sent with the "bb" utility from
the original Big Brother package.

This text doesn't appear anywhere in the Hobbit code :-)


Regards,
Henrik


On Thu, Mar 16, 2006 at 01:54:42PM +0100, Mirko Saam wrote:
Hi,
after reading the docs, searching the list, searching the source
code i have no idea, what is going wrong here:

Data that is sent by the hobbit client is truncated somewhere.
My Hobbit client messages are about 30kB.
The client sents the message to the server without loss (verified with
netcat).

Monitoring the client channel via
  [clientlogger]
  CMD hobbitd_channel --channel=client cat
in hobbitlaunch.cfg results in:
DATADATADATA
DATADATADATA
DATADATAD

... DATA TRUNCATED ...
The received data is cut at approx 10kB. All MSG_* variables that limit
communication are clearly above this value (MSG_CLIENT=256*1024). I have
set anything to debug with no results. I did not find the place in the
source
code where the "DATA TRUNCATED" message is generated, so i can't trace
back
why it is truncated...

Help me please!

Regards,
Mirko


This message was sent using IMP, the Internet Messaging Program.

--
Henrik Storner