Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clear socket write queue and send RST if connection is dropped
Connection can be dropped by calling `ss_conn_drop_guard_exit` from several places: - from `tcp_done, when socket is already DEAD - from `__sk_close_locked` if all data is already sent - from `ss_linkerror` In all places socket write queue is already empty, except one place, when we call `ss_linkerror` for already shutdowned connection. In this case we should close socket using TCP RST, because we can't send any more data after connection will be dropped, moreover sequence numbers of skbs in socket write queue is not correct (they should be corrected during tls encryption, but appropriate function will never called for already dropped connection). Part of #2267
- Loading branch information