当前位置:首页>Linux>linux内核协议栈之tcp connect流程(三)

linux内核协议栈之tcp connect流程(三)

  • 2026-06-29 10:05:09
linux内核协议栈之tcp connect流程(三)

目录

  1. 背景:TCP 连接建立流程
  2. 关键数据结构
  3. 核心逻辑详解

背景:TCP 连接建立流程

在 TCP 三次握手中:

  • 客户端调用 connect() → 发送 SYN → 套接字状态变为 TCP_SYN_SENT
  • 服务端收到 SYN → 回复 SYN+ACK  →  套接字状态变为 TCP_NEW_SYN_RECV
  • 客户端收到 SYN+ACK → 发送 ACK → 连接建立成功(状态变为 TCP_ESTABLISHED)。 在此期间,客户端处于 TCP_SYN_SENT 状态。此时若收到任何 TCP 报文(包括合法或非法的),最终都由 tcp_rcv_synsent_state_process() 来处理。
  • 服务端收到ACK →  套接字状态变为TCP_ESTABLISHED

本文接下来将分析 客户端收到 SYN+ACK 场景。

关键数据结构

  • tp->snd_una:已发送但未确认的最小序号
  • tp->snd_nxt:下一个要发送的序号
  • tp->rcv_nxt:期望接收的下一个序号
  • sk->sk_state:当前 TCP 状态(此处为 TCP_SYN_SENT)
  • tp->snd_wl1: 上次更新窗口时skb的序列号
  • tp->snd_wnd 滑动窗口的大小,即当前本端被对端允许发送的最大数据量

核心逻辑详解

  1. tcp_v4_rcv[1]收到数据以后,先根据源目ipporttcp_hashinfo表中查找对应的sk。之前发送connect请求时已经将sk放入tcp_hashinfo。由于三次握手还未正式完成sock_owned_by_user[2]会返回false,流程进入到tcp_v4_do_rcv函数中。
inttcp_v4_rcv(struct sk_buff *skb){structnet *net = dev_net(skb->dev);structsk_buff *skb_to_free;int sdif = inet_sdif(skb);int dif = inet_iif(skb);conststructiphdr *iph;conststructtcphdr *th;bool refcounted;structsock *sk;int ret;    ………… th = (const struct tcphdr *)skb->data; iph = ip_hdr(skb);lookup: sk = __inet_lookup_skb(&tcp_hashinfo, skb, __tcp_hdrlen(th), th->source,          th->dest, sdif, &refcounted);if (!sk)goto no_tcp_socket; ………… th = (const struct tcphdr *)skb->data; iph = ip_hdr(skb); tcp_v4_fill_cb(skb, iph, th); skb->dev = NULL; …………if (!sock_owned_by_user(sk)) {  skb_to_free = sk->sk_rx_skb_cache;  sk->sk_rx_skb_cache = NULL;  ret = tcp_v4_do_rcv(sk, skb); } else {if (tcp_add_backlog(sk, skb))goto discard_and_relse;  skb_to_free = NULL; } bh_unlock_sock(sk);if (skb_to_free)  __kfree_skb(skb_to_free);put_and_return:if (refcounted)  sock_put(sk);return ret; …………}
  1. 此场景中sk->sk_state ==TCP_SYN_SENTtcp_v4_do_rcv核心作用是根据套接字状态调用tcp_rcv_state_process并最终调用tcp_rcv_synsent_state_process`进行处理。
inttcp_v4_do_rcv(struct sock *sk, struct sk_buff *skb){structsock *rsk; …………if (tcp_rcv_state_process(sk, skb)) {  rsk = sk;goto reset; }return0; …………}
inttcp_rcv_state_process(struct sock *sk, struct sk_buff *skb){structtcp_sock *tp = tcp_sk(sk);structinet_connection_sock *icsk = inet_csk(sk);conststructtcphdr *th = tcp_hdr(skb);structrequest_sock *req;int queued = 0;bool acceptable;switch (sk->sk_state) { …………case TCP_SYN_SENT:  tp->rx_opt.saw_tstamp = 0;  tcp_mstamp_refresh(tp);  queued = tcp_rcv_synsent_state_process(sk, skb, th);if (queued >= 0)return queued;/* Do step6 onward by hand. */  tcp_urg(sk, skb, th);  __kfree_skb(skb);  tcp_data_snd_check(sk);return0; } ………… }
  1. tcp_rcv_synsent_state_process函数主要处理syn ack的响应。它首先进行ack 序列号进行范围检查,接着判断本次syn ack是否非法,然后调用tcp_ack确认syn ack消息,设置sk->sk_state为TCP_ESTABLISHED,通过sk->sk_state_change来唤醒等待连接成功的客户端应用程序,最后调用tcp_send_ack给tcp服务器端回复syn ack。其中最重要的处理函数是tcp_ack
staticinttcp_rcv_synsent_state_process(struct sock *sk, struct sk_buff *skb,const struct tcphdr *th){structinet_connection_sock *icsk = inet_csk(sk);structtcp_sock *tp = tcp_sk(sk);structtcp_fastopen_cookiefoc = { .len = -1 };int saved_clamp = tp->rx_opt.mss_clamp;bool fastopen_fail; tcp_parse_options(sock_net(sk), skb, &tp->rx_opt, 0, &foc);if (tp->rx_opt.saw_tstamp && tp->rx_opt.rcv_tsecr)  tp->rx_opt.rcv_tsecr -= tp->tsoffset;if (th->ack) {/* rfc793:   * "If the state is SYN-SENT then   *    first check the ACK bit   *      If the ACK bit is set   *   If SEG.ACK =< ISS, or SEG.ACK > SND.NXT, send   *        a reset (unless the RST bit is set, if so drop   *        the segment and return)"   */if (!after(TCP_SKB_CB(skb)->ack_seq, tp->snd_una) ||      after(TCP_SKB_CB(skb)->ack_seq, tp->snd_nxt)) {/* Previous FIN/ACK or RST/ACK might be ignored. */if (icsk->icsk_retransmits == 0)    inet_csk_reset_xmit_timer(sk,      ICSK_TIME_RETRANS,      TCP_TIMEOUT_MIN, TCP_RTO_MAX);goto reset_and_undo;  }if (tp->rx_opt.saw_tstamp && tp->rx_opt.rcv_tsecr &&      !between(tp->rx_opt.rcv_tsecr, tp->retrans_stamp,        tcp_time_stamp(tp))) {   NET_INC_STATS(sock_net(sk),     LINUX_MIB_PAWSACTIVEREJECTED);goto reset_and_undo;  }/* Now ACK is acceptable.   *   * "If the RST bit is set   *    If the ACK was acceptable then signal the user "error:   *    connection reset", drop the segment, enter CLOSED state,   *    delete TCB, and return."   */if (th->rst) {   tcp_reset(sk);goto discard;  }/* rfc793:   *   "fifth, if neither of the SYN or RST bits is set then   *    drop the segment and return."   *   *    See note below!   *                                        --ANK(990513)   */if (!th->syn)goto discard_and_undo;/* rfc793:   *   "If the SYN bit is on ...   *    are acceptable then ...   *    (our SYN has been ACKed), change the connection   *    state to ESTABLISHED..."   */  tcp_ecn_rcv_synack(tp, th);  tcp_init_wl(tp, TCP_SKB_CB(skb)->seq);  tcp_try_undo_spurious_syn(sk);  tcp_ack(sk, skb, FLAG_SLOWPATH);/* Ok.. it's good. Set up sequence numbers and   * move to established.   */  WRITE_ONCE(tp->rcv_nxt, TCP_SKB_CB(skb)->seq + 1);  tp->rcv_wup = TCP_SKB_CB(skb)->seq + 1;/* RFC1323: The window in SYN & SYN/ACK segments is   * never scaled.   */  tp->snd_wnd = ntohs(th->window);if (!tp->rx_opt.wscale_ok) {   tp->rx_opt.snd_wscale = tp->rx_opt.rcv_wscale = 0;   tp->window_clamp = min(tp->window_clamp, 65535U);  }if (tp->rx_opt.saw_tstamp) {   tp->rx_opt.tstamp_ok    = 1;   tp->tcp_header_len =sizeof(struct tcphdr) + TCPOLEN_TSTAMP_ALIGNED;   tp->advmss     -= TCPOLEN_TSTAMP_ALIGNED;   tcp_store_ts_recent(tp);  } else {   tp->tcp_header_len = sizeof(struct tcphdr);  }  tcp_sync_mss(sk, icsk->icsk_pmtu_cookie);  tcp_initialize_rcv_mss(sk);/* Remember, tcp_poll() does not lock socket!   * Change state from SYN-SENT only after copied_seq   * is initialized. */  WRITE_ONCE(tp->copied_seq, tp->rcv_nxt);  smc_check_reset_syn(tp);  smp_mb();  tcp_finish_connect(sk, skb);  fastopen_fail = (tp->syn_fastopen || tp->syn_data) &&    tcp_rcv_fastopen_synack(sk, skb, &foc);if (!sock_flag(sk, SOCK_DEAD)) {   sk->sk_state_change(sk);   sk_wake_async(sk, SOCK_WAKE_IO, POLL_OUT);  }if (fastopen_fail)return-1;if (sk->sk_write_pending ||      icsk->icsk_accept_queue.rskq_defer_accept ||      inet_csk_in_pingpong_mode(sk)) {/* Save one ACK. Data will be ready after    * several ticks, if write_pending is set.    *    * It may be deleted, but with this feature tcpdumps    * look so _wonderfully_ clever, that I was not able    * to stand against the temptation 8)     --ANK    */   inet_csk_schedule_ack(sk);   tcp_enter_quickack_mode(sk, TCP_MAX_QUICKACKS);   inet_csk_reset_xmit_timer(sk, ICSK_TIME_DACK,        TCP_DELACK_MAX, TCP_RTO_MAX);discard:   tcp_drop(sk, skb);return0;  } else {   tcp_send_ack(sk);  }return-1; } …………}
  1. tcp_ack函数是整个tcp协议的核心处理函数,它主要功能有:一、调用tcp_ack_update_window 更新tp->snd_wnd与tp->snd_una 。二、如果ack序列号没有乱序,则将确认的skb从重传列表中删除。三、如果ack是乱序,则调用tcp_sacktag_write_queue对乱序报文进行处理,主要是对乱序确认的skb设置相应标志,进行相应的统计。四、对丢失报文进行拥塞处理,比如快速重传与快速恢复
staticinttcp_ack(struct sock *sk, const struct sk_buff *skb, int flag){structinet_connection_sock *icsk = inet_csk(sk);structtcp_sock *tp = tcp_sk(sk);structtcp_sacktag_statesack_state;structrate_samplers = { .prior_delivered = 0 }; u32 prior_snd_una = tp->snd_una;bool is_sack_reneg = tp->is_sack_reneg; u32 ack_seq = TCP_SKB_CB(skb)->seq; u32 ack = TCP_SKB_CB(skb)->ack_seq;int num_dupack = 0;int prior_packets = tp->packets_out; u32 delivered = tp->delivered; u32 lost = tp->lost;int rexmit = REXMIT_NONE; /* Flag to (re)transmit to recover losses */ u32 prior_fack; sack_state.first_sackt = 0; sack_state.rate = &rs;/* We very likely will need to access rtx queue. */ prefetch(sk->tcp_rtx_queue.rb_node);/* If the ack is older than previous acks  * then we can probably ignore it.  */if (before(ack, prior_snd_una)) {/* RFC 5961 5.2 [Blind Data Injection Attack].[Mitigation] */if (before(ack, prior_snd_una - tp->max_window)) {if (!(flag & FLAG_NO_CHALLENGE_ACK))    tcp_send_challenge_ack(sk, skb);return-1;  }goto old_ack; }/* If the ack includes data we haven't sent yet, discard  * this segment (RFC793 Section 3.9).  */if (after(ack, tp->snd_nxt))return-1;if (after(ack, prior_snd_una)) {  flag |= FLAG_SND_UNA_ADVANCED;  icsk->icsk_retransmits = 0;#if IS_ENABLED(CONFIG_TLS_DEVICE)if (static_branch_unlikely(&clean_acked_data_enabled.key))if (icsk->icsk_clean_acked)    icsk->icsk_clean_acked(sk, ack);#endif } prior_fack = tcp_is_sack(tp) ? tcp_highest_sack_seq(tp) : tp->snd_una; rs.prior_in_flight = tcp_packets_in_flight(tp);/* ts_recent update must be made after we are sure that the packet  * is in window.  */if (flag & FLAG_UPDATE_TS_RECENT)  tcp_replace_ts_recent(tp, TCP_SKB_CB(skb)->seq);if ((flag & (FLAG_SLOWPATH | FLAG_SND_UNA_ADVANCED)) ==     FLAG_SND_UNA_ADVANCED) {  ………… } else {  u32 ack_ev_flags = CA_ACK_SLOWPATH;if (ack_seq != TCP_SKB_CB(skb)->end_seq)   flag |= FLAG_DATA;else   NET_INC_STATS(sock_net(sk), LINUX_MIB_TCPPUREACKS);  flag |= tcp_ack_update_window(sk, skb, ack, ack_seq);if (TCP_SKB_CB(skb)->sacked)   flag |= tcp_sacktag_write_queue(sk, skb, prior_snd_una,       &sack_state);if (tcp_ecn_rcv_ecn_echo(tp, tcp_hdr(skb))) {   flag |= FLAG_ECE;   ack_ev_flags |= CA_ACK_ECE;  }if (flag & FLAG_WIN_UPDATE)   ack_ev_flags |= CA_ACK_WIN_UPDATE;  tcp_in_ack_event(sk, ack_ev_flags); }/* This is a deviation from RFC3168 since it states that:  * "When the TCP data sender is ready to set the CWR bit after reducing  * the congestion window, it SHOULD set the CWR bit only on the first  * new data packet that it transmits."  * We accept CWR on pure ACKs to be more robust  * with widely-deployed TCP implementations that do this.  */ tcp_ecn_accept_cwr(sk, skb);/* We passed data and got it acked, remove any soft error  * log. Something worked...  */ sk->sk_err_soft = 0; icsk->icsk_probes_out = 0; tp->rcv_tstamp = tcp_jiffies32;if (!prior_packets)goto no_queue;/* See if we can take anything off of the retransmit queue. */ flag |= tcp_clean_rtx_queue(sk, prior_fack, prior_snd_una, &sack_state); tcp_rack_update_reo_wnd(sk, &rs);if (tp->tlp_high_seq)  tcp_process_tlp_ack(sk, ack, flag);/* If needed, reset TLP/RTO timer; RACK may later override this. */if (flag & FLAG_SET_XMIT_TIMER)  tcp_set_xmit_timer(sk);if (tcp_ack_is_dubious(sk, flag)) {if (!(flag & (FLAG_SND_UNA_ADVANCED | FLAG_NOT_DUP))) {   num_dupack = 1;/* Consider if pure acks were aggregated in tcp_add_backlog() */if (!(flag & FLAG_DATA))    num_dupack = max_t(u16, 1, skb_shinfo(skb)->gso_segs);  }  tcp_fastretrans_alert(sk, prior_snd_una, num_dupack, &flag,          &rexmit); }if ((flag & FLAG_FORWARD_PROGRESS) || !(flag & FLAG_NOT_DUP))  sk_dst_confirm(sk); delivered = tcp_newly_delivered(sk, delivered, flag); lost = tp->lost - lost;   /* freshly marked lost */ rs.is_ack_delayed = !!(flag & FLAG_ACK_MAYBE_DELAYED); tcp_rate_gen(sk, delivered, lost, is_sack_reneg, sack_state.rate); tcp_cong_control(sk, ack, delivered, flag, sack_state.rate); tcp_xmit_recovery(sk, rexmit);return1; …………}

参考资料

[1] 

linux内核版本: linux5.7.8。

[2] 

注1: 用于判断sock是否被用户态持用,其主要目的是为解决用户状与内核态对sock的竞争问题。

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-07-03 12:33:38 HTTP/2.0 GET : https://f.mffb.com.cn/a/490788.html
  2. 运行时间 : 0.098143s [ 吞吐率:10.19req/s ] 内存消耗:4,337.36kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=aecf5f95a1c88ed4f56cb660889025ff
  1. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/public/index.php ( 0.79 KB )
  2. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/autoload.php ( 0.17 KB )
  3. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/autoload_real.php ( 2.49 KB )
  4. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/platform_check.php ( 0.90 KB )
  5. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/ClassLoader.php ( 14.03 KB )
  6. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/autoload_static.php ( 4.90 KB )
  7. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper.php ( 8.34 KB )
  8. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-validate/src/helper.php ( 2.19 KB )
  9. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/helper.php ( 1.47 KB )
  10. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/stubs/load_stubs.php ( 0.16 KB )
  11. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Exception.php ( 1.69 KB )
  12. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-container/src/Facade.php ( 2.71 KB )
  13. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/deprecation-contracts/function.php ( 0.99 KB )
  14. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/polyfill-mbstring/bootstrap.php ( 8.26 KB )
  15. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/polyfill-mbstring/bootstrap80.php ( 9.78 KB )
  16. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/var-dumper/Resources/functions/dump.php ( 1.49 KB )
  17. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-dumper/src/helper.php ( 0.18 KB )
  18. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/var-dumper/VarDumper.php ( 4.30 KB )
  19. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/App.php ( 15.30 KB )
  20. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-container/src/Container.php ( 15.76 KB )
  21. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/container/src/ContainerInterface.php ( 1.02 KB )
  22. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/provider.php ( 0.19 KB )
  23. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Http.php ( 6.04 KB )
  24. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper/Str.php ( 7.29 KB )
  25. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Env.php ( 4.68 KB )
  26. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/common.php ( 0.03 KB )
  27. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/helper.php ( 18.78 KB )
  28. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Config.php ( 5.54 KB )
  29. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/app.php ( 0.95 KB )
  30. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/cache.php ( 0.78 KB )
  31. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/console.php ( 0.23 KB )
  32. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/cookie.php ( 0.56 KB )
  33. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/database.php ( 2.48 KB )
  34. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/Env.php ( 1.67 KB )
  35. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/filesystem.php ( 0.61 KB )
  36. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/lang.php ( 0.91 KB )
  37. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/log.php ( 1.35 KB )
  38. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/middleware.php ( 0.19 KB )
  39. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/route.php ( 1.89 KB )
  40. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/session.php ( 0.57 KB )
  41. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/trace.php ( 0.34 KB )
  42. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/view.php ( 0.82 KB )
  43. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/event.php ( 0.25 KB )
  44. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Event.php ( 7.67 KB )
  45. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/service.php ( 0.13 KB )
  46. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/AppService.php ( 0.26 KB )
  47. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Service.php ( 1.64 KB )
  48. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Lang.php ( 7.35 KB )
  49. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/lang/zh-cn.php ( 13.70 KB )
  50. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/Error.php ( 3.31 KB )
  51. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/RegisterService.php ( 1.33 KB )
  52. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/services.php ( 0.14 KB )
  53. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/PaginatorService.php ( 1.52 KB )
  54. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/ValidateService.php ( 0.99 KB )
  55. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/ModelService.php ( 2.04 KB )
  56. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/Service.php ( 0.77 KB )
  57. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Middleware.php ( 6.72 KB )
  58. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/BootService.php ( 0.77 KB )
  59. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/Paginator.php ( 11.86 KB )
  60. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-validate/src/Validate.php ( 63.20 KB )
  61. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/Model.php ( 23.55 KB )
  62. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/Attribute.php ( 21.05 KB )
  63. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/AutoWriteData.php ( 4.21 KB )
  64. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/Conversion.php ( 6.44 KB )
  65. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/DbConnect.php ( 5.16 KB )
  66. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/ModelEvent.php ( 2.33 KB )
  67. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/RelationShip.php ( 28.29 KB )
  68. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/contract/Arrayable.php ( 0.09 KB )
  69. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/contract/Jsonable.php ( 0.13 KB )
  70. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/contract/Modelable.php ( 0.09 KB )
  71. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Db.php ( 2.88 KB )
  72. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/DbManager.php ( 8.52 KB )
  73. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Log.php ( 6.28 KB )
  74. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Manager.php ( 3.92 KB )
  75. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/log/src/LoggerTrait.php ( 2.69 KB )
  76. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/log/src/LoggerInterface.php ( 2.71 KB )
  77. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Cache.php ( 4.92 KB )
  78. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/simple-cache/src/CacheInterface.php ( 4.71 KB )
  79. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper/Arr.php ( 16.63 KB )
  80. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/cache/driver/File.php ( 7.84 KB )
  81. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/cache/Driver.php ( 9.03 KB )
  82. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/CacheHandlerInterface.php ( 1.99 KB )
  83. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/Request.php ( 0.09 KB )
  84. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Request.php ( 55.78 KB )
  85. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/middleware.php ( 0.25 KB )
  86. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Pipeline.php ( 2.61 KB )
  87. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/TraceDebug.php ( 3.40 KB )
  88. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/middleware/SessionInit.php ( 1.94 KB )
  89. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Session.php ( 1.80 KB )
  90. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/session/driver/File.php ( 6.27 KB )
  91. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/SessionHandlerInterface.php ( 0.87 KB )
  92. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/session/Store.php ( 7.12 KB )
  93. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Route.php ( 23.73 KB )
  94. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleName.php ( 5.75 KB )
  95. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Domain.php ( 2.53 KB )
  96. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleGroup.php ( 22.43 KB )
  97. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Rule.php ( 26.95 KB )
  98. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleItem.php ( 9.78 KB )
  99. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/route/app.php ( 1.72 KB )
  100. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/Route.php ( 4.70 KB )
  101. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/dispatch/Controller.php ( 4.74 KB )
  102. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Dispatch.php ( 10.44 KB )
  103. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/controller/Index.php ( 4.81 KB )
  104. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/BaseController.php ( 2.05 KB )
  105. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/facade/Db.php ( 0.93 KB )
  106. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/connector/Mysql.php ( 5.44 KB )
  107. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/PDOConnection.php ( 52.47 KB )
  108. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Connection.php ( 8.39 KB )
  109. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/ConnectionInterface.php ( 4.57 KB )
  110. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/builder/Mysql.php ( 16.58 KB )
  111. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Builder.php ( 24.06 KB )
  112. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/BaseBuilder.php ( 27.50 KB )
  113. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Query.php ( 15.71 KB )
  114. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/BaseQuery.php ( 45.13 KB )
  115. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/TimeFieldQuery.php ( 7.43 KB )
  116. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/AggregateQuery.php ( 3.26 KB )
  117. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ModelRelationQuery.php ( 20.07 KB )
  118. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ParamsBind.php ( 3.66 KB )
  119. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ResultOperation.php ( 7.01 KB )
  120. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/WhereQuery.php ( 19.37 KB )
  121. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/JoinAndViewQuery.php ( 7.11 KB )
  122. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/TableFieldInfo.php ( 2.63 KB )
  123. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/Transaction.php ( 2.77 KB )
  124. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/log/driver/File.php ( 5.96 KB )
  125. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/LogHandlerInterface.php ( 0.86 KB )
  126. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/log/Channel.php ( 3.89 KB )
  127. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/event/LogRecord.php ( 1.02 KB )
  128. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/Collection.php ( 16.47 KB )
  129. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/View.php ( 1.70 KB )
  130. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/View.php ( 4.39 KB )
  131. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Response.php ( 8.81 KB )
  132. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/response/View.php ( 3.29 KB )
  133. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Cookie.php ( 6.06 KB )
  134. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-view/src/Think.php ( 8.38 KB )
  135. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/TemplateHandlerInterface.php ( 1.60 KB )
  136. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/Template.php ( 46.61 KB )
  137. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/template/driver/File.php ( 2.41 KB )
  138. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/template/contract/DriverInterface.php ( 0.86 KB )
  139. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/runtime/temp/067d451b9a0c665040f3f1bdd3293d68.php ( 11.98 KB )
  140. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/Html.php ( 4.42 KB )
  1. CONNECT:[ UseTime:0.000682s ] mysql:host=127.0.0.1;port=3306;dbname=f_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.000866s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.000356s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000297s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.000485s ]
  6. SELECT * FROM `set` [ RunTime:0.000197s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.000582s ]
  8. SELECT * FROM `article` WHERE `id` = 490788 LIMIT 1 [ RunTime:0.000537s ]
  9. UPDATE `article` SET `lasttime` = 1783053218 WHERE `id` = 490788 [ RunTime:0.011335s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 67 LIMIT 1 [ RunTime:0.000318s ]
  11. SELECT * FROM `article` WHERE `id` < 490788 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.000535s ]
  12. SELECT * FROM `article` WHERE `id` > 490788 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.000378s ]
  13. SELECT * FROM `article` WHERE `id` < 490788 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.005400s ]
  14. SELECT * FROM `article` WHERE `id` < 490788 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.002493s ]
  15. SELECT * FROM `article` WHERE `id` < 490788 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.001638s ]
0.099856s