[Bug 258732] [tcp] TCP_MAXSEG does not work
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 07 Oct 2021 14:57:24 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258732 --- Comment #6 from zhh0000zhh <me@zhh0000zhh.com> --- My Code: int mss; socklen_t mss_size; mss_size = sizeof(mss); getsockopt(fd, IPPROTO_TCP, TCP_MAXSEG, &mss, &mss_size); //mss <1460 setsockopt(fd2, IPPROTO_TCP, TCP_MAXSEG, &mss, mss_size); //need same mss for more ,you can search "TCP_MAXSEG site:github.com" in google. in rfc793 page 19, Section 3.1, "This field must only be sent in the initial connection request (i.e., in segments with the SYN control bit set)." https://datatracker.ietf.org/doc/html/rfc793#section-3.1 I think this is bug, not feature. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=144000 is not true. -- You are receiving this mail because: You are the assignee for the bug.