[Bug 217637] One TCP connection accepted TWO times

2017-03-19 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217637 --- Comment #42 from Sepherosa Ziehau --- (In reply to Mike Karels from comment #41) Would transition from {FIN-WAIT-1,FIN-WAIT-2,CLOSING} to TIME-WAIT for this code segment be more "appropriate" than transition to CLOSED? -- You are rec

[Bug 217637] One TCP connection accepted TWO times

2017-03-19 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217637 Mike Karels changed: What|Removed |Added CC||kar...@freebsd.org --- Comment #41 f

[Bug 203735] Transparent interception of ipv6 with squid and pf causes panic

2017-03-19 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203735 Kristof Provost changed: What|Removed |Added CC||k...@freebsd.org --- Comment #7

[Bug 217637] One TCP connection accepted TWO times

2017-03-19 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217637 --- Comment #40 from Sepherosa Ziehau --- (In reply to Michael Tuexen from comment #33) I think the code that transit the FIN-WAIT-1 to CLOSED is this: /* * If new data are received on a connection after the * use

Re: LLE reference leak in the L2 cache

2017-03-19 Thread Mike Karels
The context has gotten messy here, so I’m going to break down and top-post. I started review https://reviews.freebsd.org/D10059 with a fix for the reference-count leak. It changes the semantics so only routes within an in_pcb automatically do L2 caching. I’ll put the tcp_output change for V6

[Bug 217637] One TCP connection accepted TWO times

2017-03-19 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217637 --- Comment #39 from Michael Tuexen --- (In reply to slw from comment #38) The text you are referring to deals with the case that the application has called shutdown(..., SHUT_WR), not close(). So the text doesn't apply here... -- You are

[Bug 217637] One TCP connection accepted TWO times

2017-03-19 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217637 --- Comment #38 from s...@zxy.spb.ru --- (In reply to Michael Tuexen from comment #37) RST+ACK, in sequence of data. And don't do transition from FIN-WAIT-1 until got ACK to FIN. "All segments preceding and including FIN will be retransmit

Problem reports for freebsd-net@FreeBSD.org that need special attention

2017-03-19 Thread bugzilla-noreply
To view an individual PR, use: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id). The following is a listing of current problems submitted by FreeBSD users, which need special attention. These represent problem reports covering all versions including experimental development code and ob

[Bug 217637] One TCP connection accepted TWO times

2017-03-19 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217637 --- Comment #37 from Michael Tuexen --- (In reply to slw from comment #36) Please note that RFC 793 defines the CLOSE operation as "I have no more data to send." So this does NOT map to the close() system call in the socket API, but to the

[Bug 217637] One TCP connection accepted TWO times

2017-03-19 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217637 --- Comment #36 from s...@zxy.spb.ru --- (In reply to Michael Tuexen from comment #35) > This doesn't happen because NEW data arrives and the application has called close(). So this new data cannot be delivered to the application. The TCP s

[Bug 217637] One TCP connection accepted TWO times

2017-03-19 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217637 --- Comment #35 from Michael Tuexen --- (In reply to slw from comment #34) > I am don't understund this. CLOSING must be only after got FIN. > FIN don't received, data in buffer don't ack, what reasson to CLOSING > transition > and lost da

[Bug 217637] One TCP connection accepted TWO times

2017-03-19 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217637 --- Comment #34 from s...@zxy.spb.ru --- (In reply to Michael Tuexen from comment #33) Right, FIN_WAIT_1. > Then the state is FIN-WAIT-1. Then it receives the second part of the > request. Since the socket is closed, it responds with a RS

[Bug 217637] One TCP connection accepted TWO times

2017-03-19 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217637 --- Comment #33 from Michael Tuexen --- (In reply to slw from comment #32) The server does socket() listen() accept() read() write() close() which means it reads the first part of the request, sends the response (en error message) and close

[Bug 217637] One TCP connection accepted TWO times

2017-03-19 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217637 --- Comment #32 from s...@zxy.spb.ru --- server CLOSE_WAIT, not client. after application close socket server must wait for acknowledgment sended data and resend it if need. So client retransmit must be routed to existing inpcb in CLOSE_WAIT

[Bug 217637] One TCP connection accepted TWO times

2017-03-19 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217637 --- Comment #31 from Michael Tuexen --- (In reply to slw from comment #30) The client retransmits the whole data and only acks the SYN. So he hasn't processed the FIN sent by the server. All that has been dropped. So I think the client is n

[Bug 217637] One TCP connection accepted TWO times

2017-03-19 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217637 --- Comment #30 from s...@zxy.spb.ru --- (In reply to Michael Tuexen from comment #29) I am ask again about CLOSE_WAIT state and retransmit lost replay. -- You are receiving this mail because: You are the assignee for the bug. ___

[Bug 217637] One TCP connection accepted TWO times

2017-03-19 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217637 --- Comment #29 from Michael Tuexen --- (In reply to Julian Elischer from comment #28) No, I think even FreeBSD would behave the same as a client if the client does socket() connect() send(part1) send(part2) and the third segment from the t

[Bug 217637] One TCP connection accepted TWO times

2017-03-19 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217637 Julian Elischer changed: What|Removed |Added CC||jul...@freebsd.org --- Comment #