{"id":203989,"date":"2020-10-31T08:09:59","date_gmt":"2020-10-31T00:09:59","guid":{"rendered":"https:\/\/gulass.cn\/?p=203989"},"modified":"2020-10-26T19:10:49","modified_gmt":"2020-10-26T11:10:49","slug":"tcp-rst","status":"publish","type":"post","link":"https:\/\/gulass.cn\/tcp-rst.html","title":{"rendered":"Linux TCP RST\u60c5\u51b5"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u5bfc\u81f4\u201cConnection reset\u201d\u7684\u539f\u56e0\u662f\u670d\u52a1\u5668\u7aef\u56e0\u4e3a\u67d0\u79cd\u539f\u56e0\u5173\u95ed\u4e86Connection\uff0c\u800c\u5ba2\u6237\u7aef\u4f9d\u7136\u5728\u8bfb\u5199\u6570\u636e\uff0c\u6b64\u65f6\u670d\u52a1\u5668\u4f1a\u8fd4\u56de\u590d\u4f4d\u6807\u5fd7\u201cRST\u201d\uff0c\u7136\u540e\u6b64\u65f6\u5ba2\u6237\u7aef\u5c31\u4f1a\u63d0\u793a\u201cjava.net.SocketException: Connection reset\u201d\u3002\u53ef\u80fd\u6709\u540c\u5b66\u5bf9\u590d\u4f4d\u6807\u5fd7\u201cRST\u201d\u8fd8\u4e0d\u592a\u4e86\u89e3\uff0c\u8fd9\u91cc\u7b80\u5355\u89e3\u91ca\u4e00\u4e0b\uff1a<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"\"
\nTCP\u5efa\u7acb\u8fde\u63a5\u65f6\u9700\u8981\u4e09\u6b21\u63e1\u624b\uff0c\u5728\u91ca\u653e\u8fde\u63a5\u9700\u8981\u56db\u6b21\u6325\u624b\uff1b\u4f8b\u5982\u4e09\u6b21\u63e1\u624b\u7684\u8fc7\u7a0b\u5982\u4e0b\uff1a<\/p>\n

\u7b2c\u4e00\u6b21\u63e1\u624b\uff1a\u5ba2\u6237\u7aef\u53d1\u9001syn\u5305\uff08syn=j\uff09\u5230\u670d\u52a1\u5668\uff0c\u5e76\u8fdb\u5165SYN_SENT\u72b6\u6001\uff0c\u7b49\u5f85\u670d\u52a1\u5668\u786e\u8ba4\uff1b<\/p>\n

\u7b2c\u4e8c\u6b21\u63e1\u624b\uff1a\u670d\u52a1\u5668\u6536\u5230syn\u5305\uff0c\u5e76\u4f1a\u786e\u8ba4\u5ba2\u6237\u7684SYN\uff08ack=j+1\uff09\uff0c\u540c\u65f6\u81ea\u5df1\u4e5f\u53d1\u9001\u4e00\u4e2aSYN\u5305\uff08syn=k\uff09\uff0c\u5373SYN+ACK\u5305\uff0c\u6b64\u65f6\u670d\u52a1\u5668\u8fdb\u5165SYN_RECV\u72b6\u6001\uff1b<\/p>\n

\u7b2c\u4e09\u6b21\u63e1\u624b\uff1a\u5ba2\u6237\u7aef\u6536\u5230\u670d\u52a1\u5668\u7684SYN+ACK\u5305\uff0c\u5411\u670d\u52a1\u5668\u53d1\u9001\u786e\u8ba4\u5305ACK(ack=k+1\uff09\uff0c\u6b64\u5305\u53d1\u9001\u5b8c\u6bd5\uff0c\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u8fdb\u5165ESTABLISHED\uff08TCP\u8fde\u63a5\u6210\u529f\uff09\u72b6\u6001\uff0c\u5b8c\u6210\u4e09\u6b21\u63e1\u624b\u3002<\/p>\n

\u53ef\u4ee5\u770b\u5230\u63e1\u624b\u65f6\u4f1a\u5728\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u4e4b\u95f4\u4f20\u9012\u4e00\u4e9bTCP\u5934\u4fe1\u606f\uff0c\u6bd4\u5982ACK\u6807\u5fd7\u3001SYN\u6807\u5fd7\u4ee5\u53ca\u6325\u624b\u65f6\u7684FIN\u6807\u5fd7\u7b49\u3002<\/p>\n

\u9664\u4e86\u4ee5\u4e0a\u8fd9\u4e9b\u5e38\u89c1\u7684\u6807\u5fd7\u5934\u4fe1\u606f\uff0c\u8fd8\u6709\u53e6\u5916\u4e00\u4e9b\u6807\u5fd7\u5934\u4fe1\u606f\uff0c\u6bd4\u5982\u63a8\u6807\u5fd7PSH\u3001\u590d\u4f4d\u6807\u5fd7RST\u7b49\u3002\u5176\u4e2d\u590d\u4f4d\u6807\u5fd7RST\u7684\u4f5c\u7528\u5c31\u662f\u201c\u590d\u4f4d\u76f8\u5e94\u7684TCP\u8fde\u63a5\u201d\u3002<\/p>\n

TCP\u8fde\u63a5\u548c\u91ca\u653e\u65f6\u8fd8\u6709\u8bb8\u591a\u7ec6\u8282\uff0c\u6bd4\u5982\u534a\u8fde\u63a5\u72b6\u6001\u3001\u534a\u5173\u95ed\u72b6\u6001\u7b49\u3002\u8be6\u60c5\u8bf7\u53c2\u8003\u8fd9\u65b9\u9762\u7684\u5de8\u8457\u300aTCP\/IP\u8be6\u89e3\u300b\u548c\u300aUNIX\u7f51\u7edc\u7f16\u7a0b\u300b\u3002<\/p>\n

\u524d\u9762\u8bf4\u5230\u51fa\u73b0\u201cConnection reset\u201d\u7684\u539f\u56e0\u662f\u670d\u52a1\u5668\u5173\u95ed\u4e86Connection[\u8c03\u7528\u4e86Socket.close()\u65b9\u6cd5]\u3002\u5927\u5bb6\u53ef\u80fd\u6709\u7591\u95ee\u4e86\uff1a\u670d\u52a1\u5668\u5173\u95ed\u4e86Connection\u4e3a\u4ec0\u4e48\u4f1a\u8fd4\u56de\u201cRST\u201d\u800c\u4e0d\u662f\u8fd4\u56de\u201cFIN\u201d\u6807\u5fd7\u3002\u539f\u56e0\u5728\u4e8eSocket.close()\u65b9\u6cd5\u7684\u8bed\u4e49\u548cTCP\u7684\u201cFIN\u201d\u6807\u5fd7\u8bed\u4e49\u4e0d\u4e00\u6837\uff1a\u53d1\u9001TCP\u7684\u201cFIN\u201d\u6807\u5fd7\u8868\u793a\u6211\u4e0d\u518d\u53d1\u9001\u6570\u636e\u4e86\uff0c\u800cSocket.close()\u8868\u793a\u6211\u4e0d\u5728\u53d1\u9001\u4e5f\u4e0d\u63a5\u53d7\u6570\u636e\u4e86\u3002\u95ee\u9898\u5c31\u51fa\u5728\u201c\u6211\u4e0d\u63a5\u53d7\u6570\u636e\u201d \u4e0a\uff0c\u5982\u679c\u6b64\u65f6\u5ba2\u6237\u7aef\u8fd8\u5f80\u670d\u52a1\u5668\u53d1\u9001\u6570\u636e\uff0c\u670d\u52a1\u5668\u5185\u6838\u63a5\u6536\u5230\u6570\u636e\uff0c\u4f46\u662f\u53d1\u73b0\u6b64\u65f6Socket\u5df2\u7ecfclose\u4e86\uff0c\u5219\u4f1a\u8fd4\u56de\u201cRST\u201d\u6807\u5fd7\u7ed9\u5ba2\u6237\u7aef\u3002\u5f53\u7136\uff0c\u6b64\u65f6\u5ba2\u6237\u7aef\u5c31\u4f1a\u63d0\u793a\uff1a\u201cConnection reset\u201d\u3002\u8be6\u7ec6\u8bf4\u660e\u53ef\u4ee5\u53c2\u8003oracle\u7684\u6709\u5173\u6587\u6863\uff1ahttp:\/\/docs.oracle.com\/javase\/1.5.0\/docs\/guide\/net\/articles\/connection_release.html\u3002<\/p>\n

\u53e6\u4e00\u4e2a\u53ef\u80fd\u5bfc\u81f4\u7684\u201cConnection reset\u201d\u7684\u539f\u56e0\u662f\u670d\u52a1\u5668\u8bbe\u7f6e\u4e86Socket.setLinger (true, 0)\u3002\u4f46\u6211\u68c0\u67e5\u8fc7\u7ebf\u4e0a\u7684tomcat\u914d\u7f6e\uff0c\u662f\u6ca1\u6709\u4f7f\u7528\u8be5\u8bbe\u7f6e\u7684\uff0c\u800c\u4e14\u7ebf\u4e0a\u7684\u670d\u52a1\u5668\u90fd\u4f7f\u7528\u4e86nginx\u8fdb\u884c\u53cd\u5411\u4ee3\u7406\uff0c\u6240\u4ee5\u5e76\u4e0d\u662f\u8be5\u539f\u56e0\u5bfc\u81f4\u7684\u3002\u5173\u4e8e\u8be5\u539f\u56e0\u4e0a\u9762\u7684oracle\u6587\u6863\u4e5f\u8c08\u5230\u4e86\u5e76\u7ed9\u51fa\u4e86\u89e3\u91ca\u3002<\/p>\n

\u6b64\u5916\u5570\u55e6\u4e00\u4e0b\uff0c\u53e6\u5916\u8fd8\u6709\u4e00\u79cd\u6bd4\u8f83\u5e38\u89c1\u7684\u9519\u8bef\u201cConnection reset by peer\u201d\uff0c\u8be5\u9519\u8bef\u548c\u201cConnection reset\u201d\u662f\u6709\u533a\u522b\u7684\uff1a<\/p>\n

\u670d\u52a1\u5668\u8fd4\u56de\u4e86\u201cRST\u201d\u65f6\uff0c\u5982\u679c\u6b64\u65f6\u5ba2\u6237\u7aef\u6b63\u5728\u4eceSocket\u5957\u63a5\u5b57\u7684\u8f93\u51fa\u6d41\u4e2d\u8bfb\u6570\u636e\u5219\u4f1a\u63d0\u793aConnection reset\u201d\uff1b<\/p>\n

\u670d\u52a1\u5668\u8fd4\u56de\u4e86\u201cRST\u201d\u65f6\uff0c\u5982\u679c\u6b64\u65f6\u5ba2\u6237\u7aef\u6b63\u5728\u5f80Socket\u5957\u63a5\u5b57\u7684\u8f93\u5165\u6d41\u4e2d\u5199\u6570\u636e\u5219\u4f1a\u63d0\u793a\u201cConnection reset by peer\u201d\u3002<\/p>\n

\u201cConnection reset by peer\u201d\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n

\u524d\u9762\u8c08\u5230\u4e86\u5bfc\u81f4\u201cConnection reset\u201d\u7684\u539f\u56e0\uff0c\u800c\u5177\u4f53\u7684\u89e3\u51b3\u65b9\u6848\u6709\u5982\u4e0b\u51e0\u79cd\uff1a<\/p>\n

\u51fa\u9519\u4e86\u91cd\u8bd5\uff1b<\/p>\n

\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u7edf\u4e00\u4f7f\u7528TCP\u957f\u8fde\u63a5\uff1b<\/p>\n

\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u7edf\u4e00\u4f7f\u7528TCP\u77ed\u8fde\u63a5\u3002<\/p>\n

\u9996\u5148\u662f\u51fa\u9519\u4e86\u91cd\u8bd5\uff1a\u8fd9\u79cd\u65b9\u6848\u53ef\u4ee5\u7b80\u5355\u9632\u6b62\u201cConnection reset\u201d\u9519\u8bef\uff0c\u7136\u540e\u5982\u679c\u670d\u52a1\u4e0d\u662f\u201c\u5e42\u7b49\u201d\u7684\u5219\u4e0d\u80fd\u4f7f\u7528\u8be5\u65b9\u6cd5\uff1b\u6bd4\u5982\u63d0\u4ea4\u8ba2\u5355\u64cd\u4f5c\u5c31\u4e0d\u662f\u5e42\u7b49\u7684\uff0c\u5982\u679c\u4f7f\u7528\u91cd\u8bd5\u5219\u53ef\u80fd\u9020\u6210\u91cd\u590d\u63d0\u5355\u3002<\/p>\n

\u7136\u540e\u662f\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u7edf\u4e00\u4f7f\u7528TCP\u957f\u8fde\u63a5\uff1a\u5ba2\u6237\u7aef\u4f7f\u7528TCP\u957f\u8fde\u63a5\u5f88\u5bb9\u6613\u914d\u7f6e\uff08\u76f4\u63a5\u8bbe\u7f6eHttpClient\u5c31\u597d\uff09\uff0c\u800c\u670d\u52a1\u5668\u914d\u7f6e\u957f\u8fde\u63a5\u5c31\u6bd4\u8f83\u9ebb\u70e6\u4e86\uff0c\u5c31\u62fftomcat\u6765\u8bf4\uff0c\u9700\u8981\u8bbe\u7f6etomcat\u7684maxKeepAliveRequests\u3001connectionTimeout\u7b49\u53c2\u6570\u3002\u53e6\u5916\u5982\u679c\u4f7f\u7528\u4e86nginx\u8fdb\u884c\u53cd\u5411\u4ee3\u7406\u6216\u8d1f\u8f7d\u5747\u8861\uff0c\u6b64\u65f6\u4e5f\u9700\u8981\u914d\u7f6enginx\u4ee5\u652f\u6301\u957f\u8fde\u63a5\uff08nginx\u9ed8\u8ba4\u662f\u5bf9\u5ba2\u6237\u7aef\u4f7f\u7528\u957f\u8fde\u63a5\uff0c\u5bf9\u670d\u52a1\u5668\u4f7f\u7528\u77ed\u8fde\u63a5\uff09\u3002<\/p>\n

\u4f7f\u7528\u957f\u8fde\u63a5\u53ef\u4ee5\u907f\u514d\u6bcf\u6b21\u5efa\u7acbTCP\u8fde\u63a5\u7684\u4e09\u6b21\u63e1\u624b\u800c\u8282\u7ea6\u4e00\u5b9a\u7684\u65f6\u95f4\uff0c\u4f46\u662f\u6211\u8fd9\u8fb9\u7531\u4e8e\u662f\u5185\u7f51\uff0c\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u76843\u6b21\u63e1\u624b\u5f88\u5feb\uff0c\u5927\u7ea6\u53ea\u97001ms\u3002ping\u4e00\u4e0b\u5927\u7ea60.93ms\uff08\u4e00\u6b21\u5f80\u8fd4\uff09\uff1b\u4e09\u6b21\u63e1\u624b\u4e5f\u662f\u4e00\u6b21\u5f80\u8fd4\uff08\u7b2c\u4e09\u6b21\u63e1\u624b\u4e0d\u7528\u8fd4\u56de\uff09\u3002\u6839\u636e80\/20\u539f\u7406\uff0c1ms\u53ef\u4ee5\u5ffd\u7565\u4e0d\u8ba1\uff1b\u53c8\u8003\u8651\u5230\u957f\u8fde\u63a5\u7684\u6269\u5c55\u6027\u4e0d\u5982\u77ed\u8fde\u63a5\u597d\u3001\u4fee\u6539nginx\u548ctomcat\u7684\u914d\u7f6e\u4ee3\u4ef7\u5f88\u5927\uff08\u6240\u6709\u540e\u53f0\u670d\u52a1\u90fd\u9700\u8981\u4fee\u6539\uff09\uff1b\u6240\u4ee5\u8fd9\u91cc\u5e76\u6ca1\u6709\u4f7f\u7528\u957f\u8fde\u63a5\u3002<\/p>\n

\u6b63\u5e38\u60c5\u51b5tcp\u56db\u5c42\u63e1\u624b\u5173\u95ed\u8fde\u63a5\uff0crst\u57fa\u672c\u90fd\u662f\u5f02\u5e38\u60c5\u51b5\uff0c\u6574\u7406\u5982\u4e0b\uff1a<\/p>\n

0.\u4f7f\u7528 ping \u53ef\u4ee5\u770b\u5230\u4e22\u5305\u60c5\u51b5<\/p>\n

1.\u00a0**<\/strong><\/div>\n
2. \u5bf9\u65b9\u7aef\u53e3\u672a\u6253\u5f00\uff0c\u53d1\u751f\u5728\u8fde\u63a5\u5efa\u7acb<\/strong><\/div>\n

\u5982\u679c\u5bf9\u65b9sync_backlog\u6ee1\u4e86\u7684\u8bdd\uff0csync\u7b80\u5355\u88ab\u4e22\u5f03\uff0c\u8868\u73b0\u4e3a\u8d85\u65f6\uff0c\u800c\u4e0d\u4f1arst[\/yiji]<\/p>\n

3. close Socket \u65f6recv buffer \u4e0d\u4e3a\u7a7a<\/strong><\/div>\n

\u4f8b\u5982\uff0c\u5ba2\u6237\u7aef\u53d1\u4e86\u4e24\u4e2a\u8bf7\u6c42\uff0c\u670d\u52a1\u5668\u53ea\u4ecebuffer \u8bfb\u53d6\u7b2c\u4e00\u4e2a\u8bf7\u6c42\u5904\u7406\u5b8c\u5c31\u5173\u95ed\u8fde\u63a5\uff0ctcp\u5c42\u8ba4\u4e3a\u6570\u636e\u6ca1\u6709\u6b63\u786e\u63d0\u4ea4\u5230\u5e94\u7528\uff0c\u4f7f\u7528rst\u5173\u95ed\u8fde\u63a5\u3002<\/p>\n

4. \u79fb\u52a8\u94fe\u8def<\/strong><\/div>\n

\u79fb\u52a8\u7f51\u7edc\u4e0b\uff0c\u56fd\u5185\u662f\u67095\u5206\u949f\u540e\u5c31\u56de\u6536\u4fe1\u4ee4\uff0c\u4e5f\u5c31\u662fIM\u4ea7\u54c1\uff0c\u5982\u679c\u5fc3\u8df3>5\u5206\u949f\u540e\u670d\u52a1\u5668\u518d\u7ed9\u5ba2\u6237\u7aef\u53d1\u6d88\u606f\uff0c\u5c31\u4f1a\u6536\u5230rst\u3002\u4e5f\u8981\u67e5\u79fb\u52a8\u7f51\u7edc\u4e0bIM \u4fdd\u6301<5min \u5fc3\u8df3\u3002<\/p>\n

5. \u8d1f\u8f7d\u7b49\u8bbe\u5907<\/strong><\/div>\n

\u8d1f\u8f7d\u8bbe\u5907\u9700\u8981\u7ef4\u62a4\u8fde\u63a5\u8f6c\u53d1\u7b56\u7565\uff0c\u957f\u65f6\u95f4\u65e0\u6d41\u91cf\uff0c\u8fde\u63a5\u4e5f\u4f1a\u88ab\u6e05\u9664\uff0c\u800c\u4e14\u5f88\u591a\u90fd\u4e0d\u544a\u8bc9\u4e24\u5c42\u673a\u5668\uff0c\u65b0\u7684\u5305\u8fc7\u6765\u65f6\u624d\u901a\u544arst\u3002<\/p>\n

Apple push \u670d\u52a1\u4e5f\u6709\u8fd9\u4e2a\u95ee\u9898\uff0c\u800c\u4e14\u662f\u4e0d\u53ef\u9884\u671f\u7684\u5076\u53d1\u6027\u8fde\u63a5\u88abrst\uff1brst \u524d\u7b2c\u4e00\u4e2a\u6d88\u606fwrite \u662f\u6210\u529f\u7684\uff0c\u800c\u7b2c\u4e8c\u6761\u5199\u624d\u4f1a\u544a\u8bc9\u4f60\u8fde\u63a5\u88ab\u91cd\u7f6e\uff0c<\/p>\n

\u66fe\u7ecf\u88ab\u5b83\u6298\u817e\u6ca1\u8f99\uff0c\u56e0\u6b64\u6253\u5f00\u6bcf2\u79d2\u4e00\u6b21tcp keepalive\uff0c\u56fa\u5b9a5\u5206\u949ftcp\u8fde\u63a5\u56de\u6536\uff0c\u800c\u4e14\u53d1\u73b0\u8fde\u63a5\u51fa\u9519\u65f6\uff0c\u91cd\u53d1\u4e4b\u524d10s\u5185\u6d88\u606f\u3002<\/p>\n

6.\u00a0SO_LINGER \u5e94\u7528\u5f3a\u5236\u4f7f\u7528rst \u5173\u95ed<\/strong><\/div>\n

\u8be5\u9009\u9879\u4f1a\u76f4\u63a5\u4e22\u5f03\u672a\u53d1\u9001\u5b8c\u6bd5\u7684send buffer\uff0c\u53ef\u80fd\u9020\u6210\u4e1a\u52a1\u9519\u8bef\uff0c\u614e\u7528\uff1b\u00a0\u5f53\u7136\u5185\u7f51\u670d\u52a1\u95f4http client \u5728\u6536\u5230\u5e94\u8be5\u65f6\u4e3b\u52a8\u5173\u95ed\uff0c\u4f7f\u7528\u6539\u9009\u9879\uff0c\u4f1a\u8282\u7701\u8d44\u6e90\u3002<\/p>\n

\u597d\u50cf\u66fe\u7ecf\u6d4b\u8bd5\u8fc7haproxy \u67d0\u79cd\u914d\u7f6e\u4e0b\uff0c\u4f1a\u4f7f\u7528rst\u5173\u95ed\u8fde\u63a5\uff0c\u5c11\u4e86\u7f51\u7edc\u4ea4\u4e92\u800c\u4e14\u6ca1\u6709TIME_WAIT \u95ee\u9898<\/p>\n

7. \u8d85\u8fc7\u8d85\u65f6\u91cd\u4f20\u6b21\u6570\u3001\u7f51\u7edc\u6682\u65f6\u4e0d\u53ef\u8fbe<\/strong><\/div>\n
8. TIME_WAIT \u72b6\u6001<\/strong><\/div>\n

tw_recycle = 1 \u65f6\uff0csync timestamps \u6bd4\u4e0a\u6b21\u5c0f\u65f6\uff0c\u4f1a\u88abrst[\/yiji]<\/p>\n

9. \u8bbe\u7f6e connect_timeout<\/strong><\/div>\n

\u5e94\u7528\u8bbe\u7f6e\u4e86\u8fde\u63a5\u8d85\u65f6\uff0csync \u672a\u5b8c\u6210\u65f6\u8d85\u65f6\u4e86\uff0c\u4f1a\u53d1\u9001rst\u7ec8\u6b62\u8fde\u63a5\u3002[\/yiji]<\/p>\n

10. \u975e\u6b63\u5e38\u5305<\/strong><\/div>\n

\u8fde\u63a5\u5df2\u7ecf\u5173\u95ed\uff0cseq \u4e0d\u6b63\u786e\u7b49<\/p>\n

11. keepalive \u8d85\u65f6<\/strong><\/div>\n

\u516c\u7f51\u670d\u52a1tcp keepalive \u6700\u597d\u522b\u6253\u5f00\uff1b\u79fb\u52a8\u7f51\u7edc\u4e0b\u4f1a\u589e\u52a0\u7f51\u7edc\u8d1f\u62c5\uff0c\u5207\u5bb9\u6613\u6389\u7ebf\uff1b\u975e\u79fb\u52a8\u7f51\u7edc\u6838\u5fc3ISP\u8bbe\u5907\u4e5f\u4e0d\u4e00\u5b9a\u90fd\u652f\u6301keepalive\uff0c\u66fe\u7ecf\u4e5f\u53d1\u73b0\u8fc7\u5e7f\u5dde\u90a3\u8fb9\u6709\u4e2a\u6838\u5fc3\u8282\u70b9\u5c31\u4e0d\u652f\u6301\u3002<\/p>\n

12. \u6570\u636e\u9519\u8bef\uff0c\u4e0d\u662f\u6309\u7167\u65e2\u5b9a\u5e8f\u5217\u53f7\u53d1\u9001\u6570\u636e<\/strong><\/div>\n
13.\u5728\u4e00\u4e2a\u5df2\u5173\u95ed\u7684socket\u4e0a\u63a5\u6536\u6570\u636e<\/strong><\/div>\n
14.\u670d\u52a1\u5668\u5173\u95ed\u6216\u5f02\u5e38\u7ec8\u6b62\u4e86\u8fde\u63a5\u7531\u4e8e\u7f51\u7edc\u95ee\u9898<\/strong><\/div>\n

\u5ba2\u6237\u7aef\u6ca1\u6709\u6536\u5230\u670d\u52a1\u5668\u7684\u5173\u95ed\u8bf7\u6c42\uff0c\u8fd9\u79f0\u4e3aTCP\u534a\u6253\u5f00\u8fde\u63a5\u3002\u5c31\u7b97\u91cd\u542f\u670d\u52a1\u5668\uff0c\u4e5f\u6ca1\u6709\u8fde\u63a5\u4fe1\u606f\u3002\u5982\u679c\u5ba2\u6237\u7aef\u5411\u63d0\u5176\u5199\u5165\u6570\u636e\uff0c\u5bf9\u65b9\u5c31\u4f1a\u56de\u5e94\u4e00\u4e2aRST\u62a5\u6587\u6bb5\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

TCP\u5efa\u7acb\u8fde\u63a5\u65f6\u9700\u8981\u4e09\u6b21\u63e1\u624b\uff0c\u5728\u91ca\u653e\u8fde\u63a5\u9700\u8981\u56db\u6b21\u6325\u624b\uff1b\u4f8b\u5982\u4e09\u6b21\u63e1\u624b\u7684\u8fc7\u7a0b\u5982\u4e0b\uff1a \u7b2c\u4e00\u6b21\u63e1\u624b\uff1a\u5ba2\u6237\u7aef\u53d1\u9001syn\u5305 […]<\/p>\n","protected":false},"author":1469,"featured_media":203994,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-203989","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/203989","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/users\/1469"}],"replies":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/comments?post=203989"}],"version-history":[{"count":2,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/203989\/revisions"}],"predecessor-version":[{"id":203995,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/203989\/revisions\/203995"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media\/203994"}],"wp:attachment":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media?parent=203989"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/categories?post=203989"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/tags?post=203989"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}