Hobbit client data truncated by server?!
list Mirko Saam
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
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
list Ralph Mitchell
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
▸
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