[Bug 264943] sendfile() broken on stable/13

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 28 Jun 2022 15:21:59 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264943

            Bug ID: 264943
           Summary: sendfile() broken on stable/13
           Product: Base System
           Version: 13.1-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: rozhuk.im@gmail.com
 Attachment #234984 text/plain
         mime type:

Created attachment 234984
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=234984&action=edit
sysctl.conf from both side

tcpdump broken:
18:15:51.492779 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 60)
    172.16.0.230.27941 > 172.16.0.254.80: Flags [S], cksum 0x5a33 (incorrect ->
0x209b), seq 4056322287, win 65535, options [mss 1460,nop,wscale 10,sackOK,TS
val 1643543355 ecr 0], length 0
18:15:51.492931 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 60)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [S.], cksum 0xcfe3 (correct),
seq 3904126999, ack 4056322288, win 65535, options [mss 9140,nop,wscale
10,sackOK,TS val 3927777212 ecr 1643543355], length 0
18:15:51.492949 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 52)
    172.16.0.230.27941 > 172.16.0.254.80: Flags [.], cksum 0x5a2b (incorrect ->
0x1c72), seq 1, ack 1, win 65, options [nop,nop,TS val 1643543355 ecr
3927777212], length 0
18:15:51.493073 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 354)
    172.16.0.230.27941 > 172.16.0.254.80: Flags [P.], cksum 0x5b59 (incorrect
-> 0x38bc), seq 1:303, ack 1, win 65, options [nop,nop,TS val 1643543355 ecr
3927777212], length 302: HTTP, length: 302
        GET
/DataStore/%D0%96%D0%B8%D0%B7%D0%BD%D1%8C%2C%20%D1%83%D0%B2%D0%B8%D0%B4%D0%B5%D0%BD%D0%BD%D0%B0%D1%8F%20%D1%87%D0%B5%D1%80%D0%B5%D0%B7%20%D0%BE%D0%B1%D1%8A%D0%B5%D0%BA%D1%82%D0%B8%D0%B2-_P_6vYCYHcg.mkv
HTTP/1.1
        Host: 172.16.0.254
        Accept: */*
        User-Agent: fetch libfetch/2.0
        Connection: close

18:15:51.493176 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 52)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0x14b2 (correct),
seq 1, ack 1, win 2049, options [nop,nop,TS val 3927777212 ecr 1643543355],
length 0
18:15:51.493431 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0x5116 (correct),
seq 1:1449, ack 303, win 2049, options [nop,nop,TS val 3927777212 ecr
1643543355], length 1448: HTTP, length: 1448
        HTTP/1.1 200 OK
        Server: nginx
        Date: Tue, 28 Jun 2022 15:15:51 GMT
        Content-Type: video/x-mkv
        Content-Length: 254164702
        Last-Modified: Wed, 07 Feb 2018 21:28:32 GMT
        Connection: close
        ETag: "5a7b6f80-f263ede"
        Allow: OPTIONS, GET, HEAD, POST, PROPFIND
        DAV: 1, 2
        Accept-Ranges: bytes
        TransferMode.DLNA.ORG: Streaming
        ContentFeatures.DLNA.ORG:
DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01700000000000000000000000000000
        Accept-Ranges: bytes

18:15:51.493433 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0x89cb (incorrect ->
0xfbee), seq 1449:2897, ack 303, win 2049, options [nop,nop,TS val 3927777212
ecr 1643543355], length 1448: HTTP
18:15:51.493434 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0x8423 (incorrect ->
0xf4ca), seq 2897:4345, ack 303, win 2049, options [nop,nop,TS val 3927777212
ecr 1643543355], length 1448: HTTP
18:15:51.493435 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0xfe41 (incorrect ->
0x5c6f), seq 4345:5793, ack 303, win 2049, options [nop,nop,TS val 3927777212
ecr 1643543355], length 1448: HTTP
18:15:51.493436 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0xc6fb (incorrect ->
0x4dde), seq 5793:7241, ack 303, win 2049, options [nop,nop,TS val 3927777212
ecr 1643543355], length 1448: HTTP
18:15:51.493436 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0xf038 (incorrect ->
0x8fba), seq 7241:8689, ack 303, win 2049, options [nop,nop,TS val 3927777212
ecr 1643543355], length 1448: HTTP
18:15:51.493437 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0x2a39 (incorrect ->
0xfde4), seq 8689:10137, ack 303, win 2049, options [nop,nop,TS val 3927777212
ecr 1643543355], length 1448: HTTP
18:15:51.493549 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0x2491 (incorrect ->
0x40e0), seq 10137:11585, ack 303, win 2049, options [nop,nop,TS val 3927777212
ecr 1643543355], length 1448: HTTP
18:15:51.493551 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0x4d75 (incorrect ->
0x54f4), seq 11585:13033, ack 303, win 2049, options [nop,nop,TS val 3927777212
ecr 1643543355], length 1448: HTTP
18:15:51.493552 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0xefe3 (incorrect ->
0x4eeb), seq 13033:14481, ack 303, win 2049, options [nop,nop,TS val 3927777212
ecr 1643543355], length 1448: HTTP
18:15:51.493552 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0xea3b (incorrect ->
0xb1d7), seq 14481:15929, ack 303, win 2049, options [nop,nop,TS val 3927777212
ecr 1643543355], length 1448: HTTP
18:15:51.493553 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0x91a1 (incorrect ->
0xfcb6), seq 15929:17377, ack 303, win 2049, options [nop,nop,TS val 3927777212
ecr 1643543355], length 1448: HTTP
18:15:51.493554 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0x04a5 (incorrect ->
0xb4e5), seq 17377:18825, ack 303, win 2049, options [nop,nop,TS val 3927777212
ecr 1643543355], length 1448: HTTP
18:15:51.493554 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0xfefc (incorrect ->
0x0aa8), seq 18825:20273, ack 303, win 2049, options [nop,nop,TS val 3927777212
ecr 1643543355], length 1448: HTTP
18:15:51.493555 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0xa745 (incorrect ->
0xb21c), seq 20273:21721, ack 303, win 2049, options [nop,nop,TS val 3927777212
ecr 1643543355], length 1448: HTTP
18:15:51.493556 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0x884b (incorrect ->
0xd74a), seq 21721:23169, ack 303, win 2049, options [nop,nop,TS val 3927777212
ecr 1643543355], length 1448: HTTP
18:15:51.493674 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0x82a3 (incorrect ->
0x720f), seq 23169:24617, ack 303, win 2049, options [nop,nop,TS val 3927777212
ecr 1643543355], length 1448: HTTP
18:15:51.493675 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0x36d6 (incorrect ->
0x1804), seq 24617:26065, ack 303, win 2049, options [nop,nop,TS val 3927777212
ecr 1643543355], length 1448: HTTP
18:15:51.493676 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0x0f35 (incorrect ->
0x5523), seq 26065:27513, ack 303, win 2049, options [nop,nop,TS val 3927777212
ecr 1643543355], length 1448: HTTP
18:15:51.493677 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0x098c (incorrect ->
0x2a13), seq 27513:28961, ack 303, win 2049, options [nop,nop,TS val 3927777213
ecr 1643543355], length 1448: HTTP
18:15:51.493678 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0x5965 (incorrect ->
0x0ffe), seq 28961:30409, ack 303, win 2049, options [nop,nop,TS val 3927777213
ecr 1643543355], length 1448: HTTP
18:15:51.493679 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0x788a (incorrect ->
0x4623), seq 30409:31857, ack 303, win 2049, options [nop,nop,TS val 3927777213
ecr 1643543355], length 1448: HTTP
18:15:51.493679 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0xd3ec (incorrect ->
0x3ba6), seq 31857:33305, ack 303, win 2049, options [nop,nop,TS val 3927777213
ecr 1643543355], length 1448: HTTP
18:15:51.493680 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0x86e8 (incorrect ->
0xf0d5), seq 33305:34753, ack 303, win 2049, options [nop,nop,TS val 3927777213
ecr 1643543355], length 1448: HTTP
18:15:51.493681 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0x8140 (incorrect ->
0xb952), seq 34753:36201, ack 303, win 2049, options [nop,nop,TS val 3927777213
ecr 1643543355], length 1448: HTTP
18:15:51.493682 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0x98f8 (incorrect ->
0xe0ce), seq 36201:37649, ack 303, win 2049, options [nop,nop,TS val 3927777213
ecr 1643543355], length 1448: HTTP
18:15:51.493803 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0x3196 (incorrect ->
0x57a6), seq 37649:39097, ack 303, win 2049, options [nop,nop,TS val 3927777213
ecr 1643543355], length 1448: HTTP
18:15:51.493805 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0x2bee (incorrect ->
0xf036), seq 39097:40545, ack 303, win 2049, options [nop,nop,TS val 3927777213
ecr 1643543355], length 1448: HTTP
18:15:51.493807 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0xd99b (incorrect ->
0x0b98), seq 40545:41993, ack 303, win 2049, options [nop,nop,TS val 3927777213
ecr 1643543355], length 1448: HTTP
18:15:51.493808 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0x8362 (incorrect ->
0xc675), seq 41993:43441, ack 303, win 2049, options [nop,nop,TS val 3927777213
ecr 1643543355], length 1448: HTTP
18:15:51.493809 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0x7dba (incorrect ->
0xcaa6), seq 43441:44889, ack 303, win 2049, options [nop,nop,TS val 3927777213
ecr 1643543355], length 1448: HTTP
18:15:51.493810 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0x035b (incorrect ->
0xc217), seq 44889:46337, ack 303, win 2049, options [nop,nop,TS val 3927777213
ecr 1643543355], length 1448: HTTP
18:15:51.493811 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0x1680 (incorrect ->
0x95fe), seq 46337:47785, ack 303, win 2049, options [nop,nop,TS val 3927777213
ecr 1643543355], length 1448: HTTP
18:15:51.493812 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0x10d8 (incorrect ->
0x1d10), seq 47785:49233, ack 303, win 2049, options [nop,nop,TS val 3927777213
ecr 1643543355], length 1448: HTTP
18:15:51.493813 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0x6e27 (incorrect ->
0x2e8a), seq 49233:50681, ack 303, win 2049, options [nop,nop,TS val 3927777213
ecr 1643543355], length 1448: HTTP
18:15:51.493813 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0x1b74 (incorrect ->
0x861c), seq 50681:52129, ack 303, win 2049, options [nop,nop,TS val 3927777213
ecr 1643543355], length 1448: HTTP
18:15:51.493817 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0x15cc (incorrect ->
0xb8f7), seq 52129:53577, ack 303, win 2049, options [nop,nop,TS val 3927777213
ecr 1643543355], length 1448: HTTP
18:15:51.493822 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0xba02 (incorrect ->
0xc9fb), seq 53577:55025, ack 303, win 2049, options [nop,nop,TS val 3927777213
ecr 1643543355], length 1448: HTTP
18:15:51.493924 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0x433d (incorrect ->
0xa75b), seq 55025:56473, ack 303, win 2049, options [nop,nop,TS val 3927777213
ecr 1643543355], length 1448: HTTP
18:15:51.493926 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0x1ad7 (incorrect ->
0x68e2), seq 56473:57921, ack 303, win 2049, options [nop,nop,TS val 3927777213
ecr 1643543355], length 1448: HTTP
18:15:51.493927 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0xb2ff (incorrect ->
0xa3ce), seq 57921:59369, ack 303, win 2049, options [nop,nop,TS val 3927777213
ecr 1643543355], length 1448: HTTP
18:15:51.493927 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0xad57 (incorrect ->
0x6778), seq 59369:60817, ack 303, win 2049, options [nop,nop,TS val 3927777213
ecr 1643543355], length 1448: HTTP
18:15:51.493928 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0x59ed (incorrect ->
0xe321), seq 60817:62265, ack 303, win 2049, options [nop,nop,TS val 3927777213
ecr 1643543355], length 1448: HTTP
18:15:51.493929 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0x3eaf (incorrect ->
0xe743), seq 62265:63713, ack 303, win 2049, options [nop,nop,TS val 3927777213
ecr 1643543355], length 1448: HTTP
18:15:51.502464 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 52)
    172.16.0.230.27941 > 172.16.0.254.80: Flags [.], cksum 0x5a2b (incorrect ->
0x1592), seq 303, ack 1449, win 65, options [nop,nop,TS val 1643543365 ecr
3927777212], length 0
18:15:51.502606 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0x38f4 (incorrect ->
0xbfbb), seq 63713:65161, ack 303, win 2049, options [nop,nop,TS val 3927777222
ecr 1643543365], length 1448: HTTP
18:15:51.502608 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0xe169 (incorrect ->
0x86b0), seq 65161:66609, ack 303, win 2049, options [nop,nop,TS val 3927777222
ecr 1643543365], length 1448: HTTP
18:15:51.746937 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0x88c3 (incorrect ->
0xfae6), seq 1449:2897, ack 303, win 2049, options [nop,nop,TS val 3927777466
ecr 1643543365], length 1448: HTTP
18:15:52.020700 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0x87b1 (incorrect ->
0xf9d4), seq 1449:2897, ack 303, win 2049, options [nop,nop,TS val 3927777740
ecr 1643543365], length 1448: HTTP
18:15:52.358744 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0x8660 (incorrect ->
0xf883), seq 1449:2897, ack 303, win 2049, options [nop,nop,TS val 3927778077
ecr 1643543365], length 1448: HTTP
18:15:52.689488 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.28256: Flags [.], cksum 0x2964 (incorrect ->
0x9b87), seq 0:1448, ack 1, win 2049, options [nop,nop,TS val 2887129416 ecr
3728975066], length 1448: HTTP
18:15:52.825645 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0x848d (incorrect ->
0xf6b0), seq 1449:2897, ack 303, win 2049, options [nop,nop,TS val 3927778544
ecr 1643543365], length 1448: HTTP
18:15:53.534518 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0x81c8 (incorrect ->
0xf3eb), seq 1449:2897, ack 303, win 2049, options [nop,nop,TS val 3927779253
ecr 1643543365], length 1448: HTTP
18:15:54.129013 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.15180: Flags [.], cksum 0xcbc1 (incorrect ->
0x3de5), seq 3898621376:3898622824, ack 1963580009, win 2049, options
[nop,nop,TS val 3448563497 ecr 854338578], length 1448: HTTP
18:15:54.702217 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0x7d39 (incorrect ->
0xef5c), seq 1449:2897, ack 303, win 2049, options [nop,nop,TS val 3927780420
ecr 1643543365], length 1448: HTTP
18:15:56.835234 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.27941: Flags [.], cksum 0x74e5 (incorrect ->
0xe708), seq 1449:2897, ack 303, win 2049, options [nop,nop,TS val 3927782552
ecr 1643543365], length 1448: HTTP
.....




tcpdump without sendfile():
18:17:55.491969 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 60)
    172.16.0.230.12167 > 172.16.0.254.80: Flags [S], cksum 0x5a33 (incorrect ->
0x4eaa), seq 3452124818, win 65535, options [mss 1460,nop,wscale 10,sackOK,TS
val 1803024297 ecr 0], length 0
18:17:55.492251 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 60)
    172.16.0.254.80 > 172.16.0.230.12167: Flags [S.], cksum 0xc0f8 (correct),
seq 2194371964, ack 3452124819, win 65535, options [mss 9140,nop,wscale
10,sackOK,TS val 2568937017 ecr 1803024297], length 0
18:17:55.492269 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 52)
    172.16.0.230.12167 > 172.16.0.254.80: Flags [.], cksum 0x5a2b (incorrect ->
0x0d87), seq 1, ack 1, win 65, options [nop,nop,TS val 1803024297 ecr
2568937017], length 0
18:17:55.492414 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 354)
    172.16.0.230.12167 > 172.16.0.254.80: Flags [P.], cksum 0x5b59 (incorrect
-> 0x29d1), seq 1:303, ack 1, win 65, options [nop,nop,TS val 1803024297 ecr
2568937017], length 302: HTTP, length: 302
        GET
/DataStore/%D0%96%D0%B8%D0%B7%D0%BD%D1%8C%2C%20%D1%83%D0%B2%D0%B8%D0%B4%D0%B5%D0%BD%D0%BD%D0%B0%D1%8F%20%D1%87%D0%B5%D1%80%D0%B5%D0%B7%20%D0%BE%D0%B1%D1%8A%D0%B5%D0%BA%D1%82%D0%B8%D0%B2-_P_6vYCYHcg.mkv
HTTP/1.1
        Host: 172.16.0.254
        Accept: */*
        User-Agent: fetch libfetch/2.0
        Connection: close

18:17:55.492495 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 52)
    172.16.0.254.80 > 172.16.0.230.12167: Flags [.], cksum 0x05c7 (correct),
seq 1, ack 1, win 2049, options [nop,nop,TS val 2568937017 ecr 1803024297],
length 0
18:17:55.492750 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.12167: Flags [.], cksum 0x3e29 (correct),
seq 1:1449, ack 303, win 2049, options [nop,nop,TS val 2568937017 ecr
1803024297], length 1448: HTTP, length: 1448
        HTTP/1.1 200 OK
        Server: nginx
        Date: Tue, 28 Jun 2022 15:17:55 GMT
        Content-Type: video/x-mkv
        Content-Length: 254164702
        Last-Modified: Wed, 07 Feb 2018 21:28:32 GMT
        Connection: close
        ETag: "5a7b6f80-f263ede"
        Allow: OPTIONS, GET, HEAD, POST, PROPFIND
        DAV: 1, 2
        Accept-Ranges: bytes
        TransferMode.DLNA.ORG: Streaming
        ContentFeatures.DLNA.ORG:
DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01700000000000000000000000000000
        Accept-Ranges: bytes

18:17:55.492753 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.12167: Flags [.], cksum 0xed03 (correct),
seq 1449:2897, ack 303, win 2049, options [nop,nop,TS val 2568937017 ecr
1803024297], length 1448: HTTP
18:17:55.492755 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.12167: Flags [.], cksum 0xe5df (correct),
seq 2897:4345, ack 303, win 2049, options [nop,nop,TS val 2568937017 ecr
1803024297], length 1448: HTTP
18:17:55.492756 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.12167: Flags [.], cksum 0x4d84 (correct),
seq 4345:5793, ack 303, win 2049, options [nop,nop,TS val 2568937017 ecr
1803024297], length 1448: HTTP
18:17:55.492757 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.12167: Flags [.], cksum 0x3ef3 (correct),
seq 5793:7241, ack 303, win 2049, options [nop,nop,TS val 2568937017 ecr
1803024297], length 1448: HTTP
18:17:55.492757 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.12167: Flags [.], cksum 0x80cf (correct),
seq 7241:8689, ack 303, win 2049, options [nop,nop,TS val 2568937017 ecr
1803024297], length 1448: HTTP
18:17:55.492758 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.12167: Flags [.], cksum 0xeef9 (correct),
seq 8689:10137, ack 303, win 2049, options [nop,nop,TS val 2568937017 ecr
1803024297], length 1448: HTTP
18:17:55.492759 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.12167: Flags [.], cksum 0x31f5 (correct),
seq 10137:11585, ack 303, win 2049, options [nop,nop,TS val 2568937017 ecr
1803024297], length 1448: HTTP
18:17:55.492760 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.12167: Flags [.], cksum 0x4609 (correct),
seq 11585:13033, ack 303, win 2049, options [nop,nop,TS val 2568937017 ecr
1803024297], length 1448: HTTP
18:17:55.492762 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 52)
    172.16.0.230.12167 > 172.16.0.254.80: Flags [.], cksum 0x5a2b (incorrect ->
0x010a), seq 303, ack 2897, win 63, options [nop,nop,TS val 1803024298 ecr
2568937017], length 0
18:17:55.492768 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 52)
    172.16.0.230.12167 > 172.16.0.254.80: Flags [.], cksum 0x5a2b (incorrect ->
0xf5bb), seq 303, ack 5793, win 61, options [nop,nop,TS val 1803024298 ecr
2568937017], length 0
18:17:55.492772 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 52)
    172.16.0.230.12167 > 172.16.0.254.80: Flags [.], cksum 0x5a2b (incorrect ->
0xea6d), seq 303, ack 8689, win 59, options [nop,nop,TS val 1803024298 ecr
2568937017], length 0
18:17:55.492775 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 52)
    172.16.0.230.12167 > 172.16.0.254.80: Flags [.], cksum 0x5a2b (incorrect ->
0xdf1f), seq 303, ack 11585, win 57, options [nop,nop,TS val 1803024298 ecr
2568937017], length 0
18:17:55.492866 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.12167: Flags [.], cksum 0x4000 (correct),
seq 13033:14481, ack 303, win 2049, options [nop,nop,TS val 2568937017 ecr
1803024297], length 1448: HTTP
18:17:55.492868 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.12167: Flags [.], cksum 0xa2ec (correct),
seq 14481:15929, ack 303, win 2049, options [nop,nop,TS val 2568937017 ecr
1803024297], length 1448: HTTP
18:17:55.492869 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.12167: Flags [.], cksum 0xedcb (correct),
seq 15929:17377, ack 303, win 2049, options [nop,nop,TS val 2568937017 ecr
1803024297], length 1448: HTTP
18:17:55.492870 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.12167: Flags [.], cksum 0xa5fa (correct),
seq 17377:18825, ack 303, win 2049, options [nop,nop,TS val 2568937017 ecr
1803024297], length 1448: HTTP
18:17:55.492871 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.12167: Flags [.], cksum 0xfbbc (correct),
seq 18825:20273, ack 303, win 2049, options [nop,nop,TS val 2568937017 ecr
1803024297], length 1448: HTTP
18:17:55.492872 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 52)
    172.16.0.230.12167 > 172.16.0.254.80: Flags [.], cksum 0x5a2b (incorrect ->
0xd3d1), seq 303, ack 14481, win 55, options [nop,nop,TS val 1803024298 ecr
2568937017], length 0
18:17:55.492872 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.12167: Flags [.], cksum 0xa331 (correct),
seq 20273:21721, ack 303, win 2049, options [nop,nop,TS val 2568937017 ecr
1803024297], length 1448: HTTP
18:17:55.492873 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.12167: Flags [.], cksum 0xc85f (correct),
seq 21721:23169, ack 303, win 2049, options [nop,nop,TS val 2568937017 ecr
1803024297], length 1448: HTTP
18:17:55.492874 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
    172.16.0.254.80 > 172.16.0.230.12167: Flags [.], cksum 0x6324 (correct),
seq 23169:24617, ack 303, win 2049, options [nop,nop,TS val 2568937017 ecr
1803024297], length 1448: HTTP
18:17:55.492875 IP (tos 0x0, ttl 128, id 0, offset 0, flags [DF], proto TCP
(6), length 1500)
...



igb on both side, on send side:
igb0: flags=28963<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST,PPROMISC>
metric 0 mtu 9216
       
options=4e02023<RXCSUM,TXCSUM,JUMBO_MTU,WOL_MAGIC,RXCSUM_IPV6,TXCSUM_IPV6,NOMAP>
        ether 70:85:c2:37:57:22
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active
        nd6 options=9<PERFORMNUD,IFDISABLED>


nginx conf part:
        sendfile                        on;
        sendfile_max_chunk              64m;
        aio                             off;
        read_ahead                      128m;
        output_buffers                  128 64k;
        directio                        off;
        tcp_nopush                      off;
        tcp_nodelay                     on;
        send_lowat                      1;
        keepalive_timeout               65 60;
        keepalive_requests              100;
        keepalive_disable               none;
        send_timeout                    60s;
        reset_timedout_connection       on;

-- 
You are receiving this mail because:
You are the assignee for the bug.