{"id":270047,"date":"2021-01-09T07:38:51","date_gmt":"2021-01-08T23:38:51","guid":{"rendered":"http:\/\/4563.org\/?p=270047"},"modified":"2021-01-09T07:38:51","modified_gmt":"2021-01-08T23:38:51","slug":"%e5%88%86%e4%ba%ab%e4%b8%80%e4%b8%aa%e7%ae%80%e5%8d%95%e7%9a%84-proxy-%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%88mit-6-824-lab%ef%bc%89","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=270047","title":{"rendered":"\u5206\u4eab\u4e00\u4e2a\u7b80\u5355\u7684 Proxy \u670d\u52a1\u5668\uff08MIT 6.824 Lab\uff09"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u5206\u4eab\u4e00\u4e2a\u7b80\u5355\u7684 Proxy \u670d\u52a1\u5668\uff08MIT 6.824 Lab\uff09               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : perapera <\/span>  <span><i><\/i> 3<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u5927\u5bb6\u597d\uff0c\u5c0f\u5f1f\u6700\u8fd1\u5728\u5b66 socket\uff0c\u524d\u51e0\u5929\u5199\u4e86\u4e00\u4e2a\u5355\u7ebf\u7a0b HTTP \u670d\u52a1\u5668\u540e\uff0c\u89c9\u5f97\u5355\u7ebf\u7a0b\u4e0a\u6709\u5f88\u591a\u4e1c\u897f\u90fd\u4e0d\u80fd\u7528\u4e0a\uff0c\u6bd4\u5982\u7ebf\u7a0b\uff0c\u611f\u89c9\u6709\u70b9\u4e8f\uff0c\u6240\u4ee5\u5c31\u53c8\u7b80\u5355\u5730\u5b9e\u73b0\u4e86\u4e00\u4e2a\u7ebf\u7a0b\u6c60\uff0c\u5199\u5b8c\u8fd9\u4e2a\u7ebf\u7a0b\u6c60\u540e\uff0c\u53c8\u60f3\u5199\u4e2a\u590d\u6742\u4e00\u4e22\u4e22\u7684 example.c\uff0c\u521a\u597d\u9047\u5230\u4e86 MIT \u7684\u8fd9\u4e2aLab\uff08\u4e0d\u77e5\u9053\u4e2d\u6587\u600e\u4e48\u8bf4\u2026\u2026\uff09\uff0c\u89c9\u5f97\u53ef\u4ee5\u628a\u81ea\u5df1\u6700\u8fd1\u5b66\u7684\u4e1c\u897f\u4e00\u6b21\u90fd\u7528\u4e0a\u4e86\uff0c\u4e8e\u662f\u5c31\u53c8\u5b9e\u73b0\u4e86\u8fd9\u4e2a\u7b80\u5355\u7684\u4ee3\u7406\u670d\u52a1\u5668\u2026\u2026<\/p>\n<p>GitHub \u94fe\u63a5\uff1a https:\/\/github.com\/ahhzee\/parrots<\/p>\n<p>\u76ee\u524d\u8fd9\u4e2a\u4ee3\u7406\u670d\u52a1\u5668\u53ea\u505a\u5230\u4e86\u53ef\u4ee5\u6ee1\u8db3\u8bfe\u7a0b\u8981\u6c42\u7684\u7a0b\u5ea6\uff0c\u6bd4\u8f83\u7b80\u5355\uff08\u4f46\u53ef\u4ee5\u5b66\u5230\u591a\uff09\uff0c\u7528 Firefox \u53ef\u4ee5\u5b8c\u7f8e\u6253\u5f00 NeverSSL \u4e4b\u7c7b\u7684\u7f51\u7ad9\uff0c\u6211\u5b66\u6821\u5b98\u7f51\u4e5f\u53ef\u4ee5\u6253\u5f00\uff0c\u4f46\u4f3c\u4e4e\u4e2a\u522b\u56fe\u7247\u4f7f\u7528 HTTPS\uff0c\u4e0d\u80fd\u5b8c\u5168\u663e\u793a\u9875\u9762\uff0c\u4e2a\u522b gov \u7f51\u7ad9\u4f1a\u8fd4\u56de 200 OK \u4f46\u4e0d\u8fd4\u56de\u5185\u5bb9\uff0c\u76ee\u524d\u539f\u56e0\u672a\u77e5\uff0c\u540e\u671f\u6709\u673a\u4f1a\u4f1a\u518d\u6539\u5584\u4e00\u4e0b\uff0c\u4e0d\u8fc7\u4eca\u5929 HTTP \u7ad9\u70b9\u771f\u662f\u7528\u5c11\u89c1\u5c11\uff0c\u56fd\u5185\u7684\u5c31\u66f4\u96be\u627e\uff0c\u6240\u4ee5\u6d4b\u8bd5\u7684\u673a\u4f1a\u4e5f\u4e0d\u662f\u5f88\u591a\uff0c\u6709\u5174\u8da3\u53ef\u4ee5\u81ea\u5df1\u73a9\u4e00\u4e0b\uff5e<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" referrerpolicy=\"no-referrer\" rel=\"noreferrer\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2021\/01\/20210111_5ffc8b43df4ef.png\" alt=\"\u5206\u4eab\u4e00\u4e2a\u7b80\u5355\u7684 Proxy \u670d\u52a1\u5668\uff08MIT 6.824 Lab\uff09\" \/> (\u56fe\u4e3a\u901a\u8fc7\u4ee3\u7406\u670d\u52a1\u5668\u8bbf\u95ee eu.httpbin.org \u9875\u9762)<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>10<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4889434\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : fuyufjh <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8bb0\u5fc6\u4e2d Lab1 \u4e00\u76f4\u662f MapReduce \u3002\u7136\u540e\u53d1\u73b0 lz \u770b\u7684\u662f 2004 \u5e74\u7684\u8bfe\u7a0b\u7f51\u7ad9                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4889435\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : perapera <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @fuyufjh \u662f\u554a\uff0c\u73b0\u5728\u5199 HTTP \u4ee3\u7406\u610f\u4e49\u597d\u50cf\u4e0d\u662f\u5f88\u5927\uff0c\u4e0d\u8fc7\u597d\u50cf\u4e00\u76f4\u5230\u4e00\u51e0\u5e74\u90fd\u662f\u8fd9\u4e2a Lab                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4889436\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : twoconk <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             lz \u5927\u51e0\uff0c\u52a8\u624b\u80fd\u529b\u4e0d\u9519\uff01                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4889437\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : perapera <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @twoconk \u54c8\u54c8\uff0c\u5176\u5b9e\u8fd8\u662f\u633a\u7b80\u5355\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4889438\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : nightwitch <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             csapp \u4e5f\u6709\u4e00\u4e2a proxylab\uff0c\u91cc\u9762\u8981\u5b9e\u73b0\u4e2a LRU \u505a\u7f13:)                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4889439\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : heijiaotuan123 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             https \u53ef\u4ee5\u4f7f\u7528\u96a7\u9053\u6a21\u5f0f\uff0c \u5148\u53d1\u9001\u4e00\u4e2a CONNECT\uff0c\u4e4b\u540e\u5c31\u662f TCP \u76f4\u63a5\u8f6c\u53d1                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4889440\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : perapera <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @nightwitch \u6211\u4e5f\u8bb0\u5f97\u6709\uff01\uff01\u7b2c\u4e00\u6b21\u77e5\u9053 proxy \u8fd9\u4e2a\u6982\u5ff5\u5c31\u662f CSAPP\uff0c\u4e0d\u8fc7\u4eca\u5929\u61d2\u5f97\u7ffb\u4e66\u4e86\uff0c\u6539\u5929\u4e00\u5b9a\u770b\u4e00\u4e0b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4889441\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : perapera <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @heijiaotuan123 \u6211\u770b\u7684\u4e66\u6ca1\u51e0\u672c\u63d0\u5230 HTTPS \u7684\uff0c\u597d\u60e8\uff0c\u6539\u5929\u4e86\u89e3\u4e00\u4e0b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4889442\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : vance123 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5f53\u521d\u62ff\u5efa\u884c\u7684\u9996\u9875\u6d4b\u8bd5 csapp \u7684 proxylab\uff0c\u7ed3\u679c\u8001\u662f\u5d29\u6e83\uff0c\u6700\u540e\u53d1\u73b0\u662f\u56e0\u4e3a\u4e00\u4e2a\u957f\u5ea6\u8d85\u8fc7 8000 \u5b57\u7b26\u7684 url                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4889443\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : perapera <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @vance123 \u54c8\u54c8\uff0c\u795e\u4e86\uff0c\u6211\u4e5f\u60f3\u8fc7\u8fd9\u4e2a\u95ee\u9898\uff0c\u6211\u8fd8\u67e5\u4e86 url \u6709\u6ca1\u6709[\u957f\u5ea6\u9650\u5236]( https:\/\/stackoverflow.com\/questions\/417142\/what-is-the-maximum-length-of-a-url-in-different-browsers)\uff0c\u53ea\u662f\u6211\u6ca1\u60f3\u8fc7\u771f\u7684\u4f1a\u6709\u8fd9\u4e48\u957f\u7684 url\uff0c\u771f\u662f\u592a\u5e74\u8f7b\uff0c\u6211\u76f4\u63a5\u628a\u8d85\u8fc7 512 \u5b57\u8282\u7684 URL \u7ed9 truncate \uff08\u622a\u65ad\uff1f\uff09\u4e86                                                             <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u5206\u4eab\u4e00\u4e2a\u7b80\u5355\u7684 Proxy \u670d\u52a1\u5668&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/270047"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=270047"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/270047\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=270047"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=270047"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=270047"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}