Skip to content

Commit 0f015b3

Browse files
when nginx use setsockopt ON_LINGER, the seq number of the RST packet is error.
Use tcpdump to capture packets and you will find the problem. See:https://reviews.freebsd.org/D30036.
1 parent 3c7b637 commit 0f015b3

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

freebsd/netinet/tcp_stacks/bbr.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13489,15 +13489,6 @@ bbr_output_wtime(struct tcpcb *tp, const struct timeval *tv)
1348913489
th->th_seq = htonl(tp->snd_max);
1349013490
bbr_seq = tp->snd_max;
1349113491
}
13492-
} else if (flags & TH_RST) {
13493-
/*
13494-
* For a Reset send the last cum ack in sequence
13495-
* (this like any other choice may still generate a
13496-
* challenge ack, if a ack-update packet is in
13497-
* flight).
13498-
*/
13499-
th->th_seq = htonl(tp->snd_una);
13500-
bbr_seq = tp->snd_una;
1350113492
} else {
1350213493
/*
1350313494
* len == 0 and not persist we use snd_max, sending

freebsd/netinet/tcp_stacks/rack.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13487,15 +13487,6 @@ rack_output(struct tcpcb *tp)
1348713487
rack->rc_in_persist) {
1348813488
th->th_seq = htonl(tp->snd_nxt);
1348913489
rack_seq = tp->snd_nxt;
13490-
} else if (flags & TH_RST) {
13491-
/*
13492-
* For a Reset send the last cum ack in sequence
13493-
* (this like any other choice may still generate a
13494-
* challenge ack, if a ack-update packet is in
13495-
* flight).
13496-
*/
13497-
th->th_seq = htonl(tp->snd_una);
13498-
rack_seq = tp->snd_una;
1349913490
} else {
1350013491
th->th_seq = htonl(tp->snd_max);
1350113492
rack_seq = tp->snd_max;

0 commit comments

Comments
 (0)