× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: TCP interface problem
  • From: "Bob Crothers" <bob@xxxxxxxxxxxxxx>
  • Date: Fri, 6 Aug 1999 20:56:30 -0500

Rich,

You might be getting bit by when of the "features" of TCP/IP.

When useing the TCP protocol, the data you sent is guarenteed to arive
at the destination in the same order you sent it.

Unlike UDP which might not arive and/or might not arive in the same
order you send it.

But, the kicker is that the data might not arrive in the same SIZE
packets!

Eg:
You might send 1,000 bytes in one send.  Because you are using TCP, all
1,000 bytes will get there and byte 1 will be before byte 2, 2 before
3, etc.

BUT, it might not get there in one 1,000 byte "receive".

You might receive 256 bytes followed by 128 follded by 64, then 64,
then 512.  Total is 1,000 bytes, but if you are not prepared to
"reassembe" the packets, you are hosed.

This breaking up of information is not as severe when dealing with
local networks...but if you are going over the Internet (or a WAN) it
happens all the time.  This is not hard to program, but it needs to be
delt with or you will not have a reliable connection.

In your case, after you receive the "truncated" 536 bytes, do another
receive.  Is it the "missing" data?  If so, you are experiancing the
above.  If not, I (again) am out in left field.

There might (probably) is a configuration value to "fix" the above
"problem"...but, IMHO, you are just delaying the inevitable and have a
time bomb ticking.

Regards,
Bob Crothers

-----Original Message-----
From: Rich Duzenbury <rduz@aros.net>
To: midrange-l@midrange.com <midrange-l@midrange.com>
Date: Friday, August 06, 1999 8:01 PM
Subject: TCP interface problem


>Hello midrangers,
>
>I have a TCP socket interface giving me fits today.  We are trying to
move it from a V3R2 machine to a V4R3 machine with little success.
>
>Records longer than 536 appear to be truncated.  I notice that when I
check the TCP connection status on the new machine (Netstat, option 3),
it happens to report 'Maximum segment size: 536'.
>
>The old machine reports 'Maximum segment size: 1452'.
>
>How can I convince the new system to allow the larger segment size
(Assuming this is the real problem).
>
>This program does not appear to use any type of SETSOCKOPT calls, btw.
>
>Thank you.
>
>Regards,
>Rich
>
>+---
>| This is the Midrange System Mailing List!
>| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
>| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
>| To unsubscribe from this list send email to
MIDRANGE-L-UNSUB@midrange.com.
>| Questions should be directed to the list owner/operator:
david@midrange.com
>+---
>

+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.