03 2021 档案

摘要:在状态图中可以看到,一端主动发送FIN,也就是主动关闭时,经历FIN_WAIT_1和FIN_WAIT_2状态后会进入TIME_WAIT状态,等待2MSL后才会彻底释放连接四元组。 当一个高并发系统处理大量短连接服务时,每次处理短链接服务结束后主动关闭连接,会产生大量socket处于TIME_WAIT 阅读全文
posted @ 2021-03-11 13:46 wa小怪兽 阅读(321) 评论(0) 推荐(0)
摘要:1 int ngx_cdecl 2 main(int argc, char *const *argv) 3 { 4 ngx_buf_t *b; 5 ngx_log_t *log; 6 ngx_uint_t i; 7 ngx_cycle_t *cycle, init_cycle; 8 ngx_conf 阅读全文
posted @ 2021-03-08 11:39 wa小怪兽 阅读(168) 评论(0) 推荐(0)
摘要:面试的时候居然写炸了。补一下 1 #include <iostream> 2 3 using namespace std; 4 5 struct ListNode { 6 int val; 7 ListNode *next; 8 ListNode() : val(0), next(nullptr) 阅读全文
posted @ 2021-03-07 18:03 wa小怪兽 阅读(54) 评论(0) 推荐(0)