{"id":160,"date":"2016-01-28T02:40:28","date_gmt":"2016-01-28T02:40:28","guid":{"rendered":""},"modified":"2016-01-28T02:40:28","modified_gmt":"2016-01-28T02:40:28","slug":"","status":"publish","type":"post","link":"http:\/\/weizn.net\/?p=160","title":{"rendered":"\u5173\u4e8esocket\u8c03\u7528send()\u4ea7\u751fSIGPIPE\u4fe1\u53f7"},"content":{"rendered":"<p>\n\t<span style=\"font-size:14px;\">&nbsp;&nbsp;&nbsp;&nbsp;\u5199\u4e86\u4e00\u4e2a\u670d\u52a1\u5668\u7a0b\u5e8f,\u5728Linux\u4e0b\u6d4b\u8bd5.&nbsp; \u4f46\u662f\u670d\u52a1\u5668\u603b\u662f\u83ab\u540d\u9000\u51fa\uff0c\u6ca1\u6709core\u6587\u4ef6.<\/span><span style=\"font-size:14px;\">\u6700\u540egdb\u786e\u5b9a\u95ee\u9898\u4e3a, \u5bf9\u4e00\u4e2a\u5bf9\u7aef\u5df2\u7ecf\u5173\u95ed\u7684socket\u8c03\u7528send()\u5c06\u4f1a\u751f\u6210SIGPIPE\u4fe1\u53f7, \u8be5\u4fe1\u53f7\u9ed8\u8ba4\u7ed3\u675f\u8fdb\u7a0b.<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp;&nbsp;&nbsp;&nbsp;\u5177\u4f53\u7684\u5206\u6790\u53ef\u4ee5\u7ed3\u5408TCP\u7684&#8221;\u56db\u6b21\u63e1\u624b&#8221;\u5173\u95ed. TCP\u662f\u5168\u53cc\u5de5\u7684\u4fe1\u9053, \u53ef\u4ee5\u770b\u4f5c\u4e24\u6761\u5355\u5de5\u4fe1\u9053, TCP\u8fde\u63a5\u4e24\u7aef\u7684\u4e24\u4e2a\u7aef\u70b9\u5404\u8d1f\u8d23\u4e00\u6761. \u5f53\u5bf9\u7aef\u8c03\u7528close\u65f6, \u867d\u7136\u672c\u610f\u662f\u5173\u95ed\u6574\u4e2a\u4e24\u6761\u4fe1\u9053, \u4f46\u672c\u7aef\u53ea\u662f\u6536\u5230FIN\u5305. \u6309\u7167TCP\u534f\u8bae\u7684\u8bed\u4e49, \u8868\u793a\u5bf9\u7aef\u53ea\u662f\u5173\u95ed\u4e86\u5176\u6240\u8d1f\u8d23\u7684\u90a3\u4e00\u6761\u5355\u5de5\u4fe1\u9053, \u4ecd\u7136\u53ef\u4ee5\u7ee7\u7eed\u63a5\u6536\u6570\u636e. \u4e5f\u5c31\u662f\u8bf4, \u56e0\u4e3aTCP\u534f\u8bae\u7684\u9650\u5236, \u4e00\u4e2a\u7aef\u70b9\u65e0\u6cd5\u83b7\u77e5\u5bf9\u7aef\u7684socket\u662f\u8c03\u7528\u4e86close\u8fd8\u662fshutdown.<\/span><br \/>\n<span style=\"font-size:14px;\">\u5bf9\u4e00\u4e2a\u5df2\u7ecf\u6536\u5230FIN\u5305\u7684socket\u8c03\u7528read\u65b9\u6cd5, \u5982\u679c\u63a5\u6536\u7f13\u51b2\u5df2\u7a7a, \u5219\u8fd4\u56de0, \u8fd9\u5c31\u662f\u5e38\u8bf4\u7684\u8868\u793a\u8fde\u63a5\u5173\u95ed. \u4f46\u7b2c\u4e00\u6b21\u5bf9\u5176\u8c03\u7528write\u65b9\u6cd5\u65f6, \u5982\u679c\u53d1\u9001\u7f13\u51b2\u6ca1\u95ee\u9898, \u4f1a\u8fd4\u56de\u6b63\u786e\u5199\u5165(\u53d1\u9001). \u4f46\u53d1\u9001\u7684\u62a5\u6587\u4f1a\u5bfc\u81f4\u5bf9\u7aef\u53d1\u9001RST\u62a5\u6587, \u56e0\u4e3a\u5bf9\u7aef\u7684socket\u5df2\u7ecf\u8c03\u7528\u4e86close, \u5b8c\u5168\u5173\u95ed, \u65e2\u4e0d\u53d1\u9001, \u4e5f\u4e0d\u63a5\u6536\u6570\u636e. \u6240\u4ee5, \u7b2c\u4e8c\u6b21\u8c03\u7528write\u65b9\u6cd5(\u5047\u8bbe\u5728\u6536\u5230RST\u4e4b\u540e), \u4f1a\u751f\u6210SIGPIPE\u4fe1\u53f7, \u5bfc\u81f4\u8fdb\u7a0b\u9000\u51fa.<\/span><br \/>\n<span style=\"font-size:14px;\">\u4e3a\u4e86\u907f\u514d\u8fdb\u7a0b\u9000\u51fa, \u53ef\u4ee5\u6355\u83b7SIGPIPE\u4fe1\u53f7, \u6216\u8005\u5ffd\u7565\u5b83, \u7ed9\u5b83\u8bbe\u7f6eSIG_IGN\u4fe1\u53f7\u5904\u7406\u51fd\u6570:<\/span><br \/>\n<span style=\"font-size:14px;\">signal(SIGPIPE, SIG_IGN);<\/span><br \/>\n<span style=\"font-size:14px;\">\u8fd9\u6837, \u7b2c\u4e8c\u6b21\u8c03\u7528write\u65b9\u6cd5\u65f6, \u4f1a\u8fd4\u56de-1, \u540c\u65f6errno\u7f6e\u4e3aSIGPIPE. \u7a0b\u5e8f\u4fbf\u80fd\u77e5\u9053\u5bf9\u7aef\u5df2\u7ecf\u5173\u95ed.<\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:14px;\">&nbsp;&nbsp;&nbsp;&nbsp;\u5728linux\u4e0b\u5199socket\u7684\u7a0b\u5e8f\u7684\u65f6\u5019\uff0c\u5982\u679c\u5c1d\u8bd5send\u5230\u4e00\u4e2adisconnected socket\u4e0a\uff0c\u5c31\u4f1a\u8ba9\u5e95\u5c42\u629b\u51fa\u4e00\u4e2aSIGPIPE\u4fe1\u53f7\u3002<\/span><br \/>\n<span style=\"font-size:14px;\">\u8fd9\u4e2a\u4fe1\u53f7\u7684\u7f3a\u7701\u5904\u7406\u65b9\u6cd5\u662f\u9000\u51fa\u8fdb\u7a0b\uff0c\u5927\u591a\u6570\u65f6\u5019\u8fd9\u90fd\u4e0d\u662f\u6211\u4eec\u671f\u671b\u7684\u3002\u56e0\u6b64\u6211\u4eec\u9700\u8981\u91cd\u8f7d\u8fd9\u4e2a\u4fe1\u53f7\u7684\u5904\u7406\u65b9\u6cd5\u3002\u8c03\u7528\u4ee5\u4e0b\u4ee3\u7801\uff0c\u5373\u53ef\u5b89\u5168\u7684\u5c4f\u853dSIGPIPE\uff1a<\/span><br \/>\n<span style=\"font-size:14px;\">signal \uff08SIGPIPE\uff0c SIG_IGN\uff09\uff1b<\/span><br \/>\n<span style=\"font-size:14px;\">\u6211\u7684\u7a0b\u5e8f\u4ea7\u751f\u8fd9\u4e2a\u4fe1\u53f7\u7684\u539f\u56e0\u662f: <\/span><br \/>\n<span style=\"font-size:14px;\">client\u7aef\u901a\u8fc7 pipe \u53d1\u9001\u4fe1\u606f\u5230server\u7aef\u540e\uff0c\u5c31\u5173\u95edclient\u7aef, \u8fd9\u65f6server\u7aef,\u8fd4\u56de\u4fe1\u606f\u7ed9 client \u7aef\u65f6\u5c31\u4ea7\u751fBroken pipe \u4fe1\u53f7\u4e86\uff0c\u670d\u52a1\u5668\u5c31\u4f1a\u88ab\u7cfb\u7edf\u7ed3\u675f\u4e86\u3002<\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:14px;\">\u5bf9\u4e8e\u4ea7\u751f\u4fe1\u53f7\uff0c\u6211\u4eec\u53ef\u4ee5\u5728\u4ea7\u751f\u4fe1\u53f7\u524d\u5229\u7528\u65b9\u6cd5 signal(int signum, sighandler_t handler) \u8bbe\u7f6e\u4fe1\u53f7\u7684\u5904\u7406\u3002\u5982\u679c\u6ca1\u6709\u8c03\u7528\u6b64\u65b9\u6cd5\uff0c\u7cfb\u7edf\u5c31\u4f1a\u8c03\u7528\u9ed8\u8ba4\u5904\u7406\u65b9\u6cd5\uff1a\u4e2d\u6b62\u7a0b\u5e8f\uff0c\u663e\u793a\u63d0\u793a\u4fe1\u606f(\u5c31\u662f\u6211\u4eec\u7ecf\u5e38\u9047\u5230\u7684\u95ee\u9898)\u3002\u6211\u4eec\u53ef\u4ee5\u8c03\u7528\u7cfb\u7edf\u7684\u5904\u7406\u65b9\u6cd5\uff0c\u4e5f\u53ef\u4ee5\u81ea\u5b9a\u4e49\u5904\u7406\u65b9\u6cd5\u3002<\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:14px;\">\u7cfb\u7edf\u91cc\u8fb9\u5b9a\u4e49\u4e86\u4e09\u79cd\u5904\u7406\u65b9\u6cd5\uff1a <\/span><br \/>\n<span style=\"font-size:14px;\">(1)SIG_DFL\u4fe1\u53f7\u4e13\u7528\u7684\u9ed8\u8ba4\u52a8\u4f5c:<\/span><br \/>\n<span style=\"font-size:14px;\">\u3000\u3000(a)\u5982\u679c\u9ed8\u8ba4\u52a8\u4f5c\u662f\u6682\u505c\u7ebf\u7a0b\uff0c\u5219\u8be5\u7ebf\u7a0b\u7684\u6267\u884c\u88ab\u6682\u65f6\u6302\u8d77\u3002\u5f53\u7ebf\u7a0b\u6682\u505c\u671f\u95f4\uff0c\u53d1\u9001\u7ed9\u7ebf\u7a0b\u7684\u4efb\u4f55\u9644\u52a0\u4fe1\u53f7\u90fd\u4e0d\u4ea4\u4ed8\uff0c\u76f4\u5230\u8be5\u7ebf\u7a0b\u5f00\u59cb\u6267\u884c\uff0c\u4f46\u662fSIGKILL\u9664\u5916\u3002<\/span><br \/>\n<span style=\"font-size:14px;\">\u3000\u3000(b)\u628a\u6302\u8d77\u4fe1\u53f7\u7684\u4fe1\u53f7\u52a8\u4f5c\u8bbe\u7f6e\u6210SIG_DFL\uff0c\u4e14\u5176\u9ed8\u8ba4\u52a8\u4f5c\u662f\u5ffd\u7565\u4fe1\u53f7 (SIGCHLD)\u3002<\/span><br \/>\n<span style=\"font-size:14px;\">(2)SIG_IGN\u5ffd\u7565\u4fe1\u53f7<\/span><br \/>\n<span style=\"font-size:14px;\">\u3000\u3000(a)\u8be5\u4fe1\u53f7\u7684\u4ea4\u4ed8\u5bf9\u7ebf\u7a0b\u6ca1\u6709\u5f71\u54cd<\/span><br \/>\n<span style=\"font-size:14px;\">\u3000\u3000(b)\u7cfb\u7edf\u4e0d\u5141\u8bb8\u628aSIGKILL\u6216SIGTOP\u4fe1\u53f7\u7684\u52a8\u4f5c\u8bbe\u7f6e\u4e3aSIG_DFL<\/span><br \/>\n<span style=\"font-size:14px;\">3)SIG_ERR&nbsp;&nbsp;<\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:14px;\">\u9879\u76ee\u4e2d\u6211\u8c03\u7528\u4e86signal(SIGPIPE, SIG_IGN), \u8fd9\u6837\u4ea7\u751f&nbsp; SIGPIPE \u4fe1\u53f7\u65f6\u5c31\u4e0d\u4f1a\u4e2d\u6b62\u7a0b\u5e8f\uff0c\u76f4\u63a5\u628a\u8fd9\u4e2a\u4fe1\u53f7\u5ffd\u7565\u6389\u3002<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\n\t<span style=\"font-size:14px;\">\u6211\u5199\u4e86\u4e00\u4e2a\u670d\u52a1\u5668\u7a0b\u5e8f,\u5728Linux\u4e0b\u6d4b\u8bd5\uff0c\u7136\u540e\u7528C++\u5199\u4e86\u5ba2\u6237\u7aef\u7528\u5343\u4e07\u7ea7\u522b\u6570\u91cf\u7684\u77ed\u94fe\u63a5\u8fdb\u884c\u538b\u529b\u6d4b\u8bd5.&nbsp; \u4f46\u662f\u670d\u52a1\u5668\u603b\u662f\u83ab\u540d\u9000\u51fa\uff0c\u6ca1\u6709core\u6587\u4ef6.<\/span><br \/>\n<span style=\"font-size:14px;\">\u6700\u540egdb\u786e\u5b9a\u95ee\u9898\u4e3a, \u5bf9\u4e00\u4e2a\u5bf9\u7aef\u5df2\u7ecf\u5173\u95ed\u7684socket\u8c03\u7528\u4e24\u6b21write, \u7b2c\u4e8c\u6b21\u5c06\u4f1a\u751f\u6210SIGPIPE\u4fe1\u53f7, \u8be5\u4fe1\u53f7\u9ed8\u8ba4\u7ed3\u675f\u8fdb\u7a0b.<\/span><br \/>\n<span style=\"font-size:14px;\">\u5177\u4f53\u7684\u5206\u6790\u53ef\u4ee5\u7ed3\u5408TCP\u7684&#8221;\u56db\u6b21\u63e1\u624b&#8221;\u5173\u95ed. TCP\u662f\u5168\u53cc\u5de5\u7684\u4fe1\u9053, \u53ef\u4ee5\u770b\u4f5c\u4e24\u6761\u5355\u5de5\u4fe1\u9053, TCP\u8fde\u63a5\u4e24&#8230;<\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[332],"tags":[],"class_list":["post-160","post","type-post","status-publish","format-standard","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5173\u4e8esocket\u8c03\u7528send()\u4ea7\u751fSIGPIPE\u4fe1\u53f7 - Wayne&#039;s Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/weizn.net\/?p=160\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5173\u4e8esocket\u8c03\u7528send()\u4ea7\u751fSIGPIPE\u4fe1\u53f7 - Wayne&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"\u6211\u5199\u4e86\u4e00\u4e2a\u670d\u52a1\u5668\u7a0b\u5e8f,\u5728Linux\u4e0b\u6d4b\u8bd5\uff0c\u7136\u540e\u7528C++\u5199\u4e86\u5ba2\u6237\u7aef\u7528\u5343\u4e07\u7ea7\u522b\u6570\u91cf\u7684\u77ed\u94fe\u63a5\u8fdb\u884c\u538b\u529b\u6d4b\u8bd5.&nbsp; \u4f46\u662f\u670d\u52a1\u5668\u603b\u662f\u83ab\u540d\u9000\u51fa\uff0c\u6ca1\u6709core\u6587\u4ef6. \u6700\u540egdb\u786e\u5b9a\u95ee\u9898\u4e3a, \u5bf9\u4e00\u4e2a\u5bf9\u7aef\u5df2\u7ecf\u5173\u95ed\u7684socket\u8c03\u7528\u4e24\u6b21write, \u7b2c\u4e8c\u6b21\u5c06\u4f1a\u751f\u6210SIGPIPE\u4fe1\u53f7, \u8be5\u4fe1\u53f7\u9ed8\u8ba4\u7ed3\u675f\u8fdb\u7a0b. \u5177\u4f53\u7684\u5206\u6790\u53ef\u4ee5\u7ed3\u5408TCP\u7684&quot;\u56db\u6b21\u63e1\u624b&quot;\u5173\u95ed. TCP\u662f\u5168\u53cc\u5de5\u7684\u4fe1\u9053, \u53ef\u4ee5\u770b\u4f5c\u4e24\u6761\u5355\u5de5\u4fe1\u9053, TCP\u8fde\u63a5\u4e24...\" \/>\n<meta property=\"og:url\" content=\"http:\/\/weizn.net\/?p=160\" \/>\n<meta property=\"og:site_name\" content=\"Wayne&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2016-01-28T02:40:28+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"zinan\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"http:\/\/weizn.net\/#website\",\"url\":\"http:\/\/weizn.net\/\",\"name\":\"Wayne&#039;s Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/weizn.net\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/weizn.net\/?p=160#webpage\",\"url\":\"http:\/\/weizn.net\/?p=160\",\"name\":\"\\u5173\\u4e8esocket\\u8c03\\u7528send()\\u4ea7\\u751fSIGPIPE\\u4fe1\\u53f7 - Wayne&#039;s Blog\",\"isPartOf\":{\"@id\":\"http:\/\/weizn.net\/#website\"},\"datePublished\":\"2016-01-28T02:40:28+00:00\",\"dateModified\":\"2016-01-28T02:40:28+00:00\",\"breadcrumb\":{\"@id\":\"http:\/\/weizn.net\/?p=160#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/weizn.net\/?p=160\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/weizn.net\/?p=160#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\\u9996\\u9875\",\"item\":\"http:\/\/weizn.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\\u5173\\u4e8esocket\\u8c03\\u7528send()\\u4ea7\\u751fSIGPIPE\\u4fe1\\u53f7\"}]},{\"@type\":\"Article\",\"@id\":\"http:\/\/weizn.net\/?p=160#article\",\"isPartOf\":{\"@id\":\"http:\/\/weizn.net\/?p=160#webpage\"},\"author\":{\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\"},\"headline\":\"\\u5173\\u4e8esocket\\u8c03\\u7528send()\\u4ea7\\u751fSIGPIPE\\u4fe1\\u53f7\",\"datePublished\":\"2016-01-28T02:40:28+00:00\",\"dateModified\":\"2016-01-28T02:40:28+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/weizn.net\/?p=160#webpage\"},\"wordCount\":104,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\"},\"articleSection\":[\"Linux\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\/\/weizn.net\/?p=160#respond\"]}]},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\",\"name\":\"zinan\",\"logo\":{\"@id\":\"http:\/\/weizn.net\/#personlogo\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5173\u4e8esocket\u8c03\u7528send()\u4ea7\u751fSIGPIPE\u4fe1\u53f7 - Wayne&#039;s Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/weizn.net\/?p=160","og_locale":"zh_CN","og_type":"article","og_title":"\u5173\u4e8esocket\u8c03\u7528send()\u4ea7\u751fSIGPIPE\u4fe1\u53f7 - Wayne&#039;s Blog","og_description":"\u6211\u5199\u4e86\u4e00\u4e2a\u670d\u52a1\u5668\u7a0b\u5e8f,\u5728Linux\u4e0b\u6d4b\u8bd5\uff0c\u7136\u540e\u7528C++\u5199\u4e86\u5ba2\u6237\u7aef\u7528\u5343\u4e07\u7ea7\u522b\u6570\u91cf\u7684\u77ed\u94fe\u63a5\u8fdb\u884c\u538b\u529b\u6d4b\u8bd5.&nbsp; \u4f46\u662f\u670d\u52a1\u5668\u603b\u662f\u83ab\u540d\u9000\u51fa\uff0c\u6ca1\u6709core\u6587\u4ef6. \u6700\u540egdb\u786e\u5b9a\u95ee\u9898\u4e3a, \u5bf9\u4e00\u4e2a\u5bf9\u7aef\u5df2\u7ecf\u5173\u95ed\u7684socket\u8c03\u7528\u4e24\u6b21write, \u7b2c\u4e8c\u6b21\u5c06\u4f1a\u751f\u6210SIGPIPE\u4fe1\u53f7, \u8be5\u4fe1\u53f7\u9ed8\u8ba4\u7ed3\u675f\u8fdb\u7a0b. \u5177\u4f53\u7684\u5206\u6790\u53ef\u4ee5\u7ed3\u5408TCP\u7684\"\u56db\u6b21\u63e1\u624b\"\u5173\u95ed. TCP\u662f\u5168\u53cc\u5de5\u7684\u4fe1\u9053, \u53ef\u4ee5\u770b\u4f5c\u4e24\u6761\u5355\u5de5\u4fe1\u9053, TCP\u8fde\u63a5\u4e24...","og_url":"http:\/\/weizn.net\/?p=160","og_site_name":"Wayne&#039;s Blog","article_published_time":"2016-01-28T02:40:28+00:00","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"zinan","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"http:\/\/weizn.net\/#website","url":"http:\/\/weizn.net\/","name":"Wayne&#039;s Blog","description":"","publisher":{"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/weizn.net\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"WebPage","@id":"http:\/\/weizn.net\/?p=160#webpage","url":"http:\/\/weizn.net\/?p=160","name":"\u5173\u4e8esocket\u8c03\u7528send()\u4ea7\u751fSIGPIPE\u4fe1\u53f7 - Wayne&#039;s Blog","isPartOf":{"@id":"http:\/\/weizn.net\/#website"},"datePublished":"2016-01-28T02:40:28+00:00","dateModified":"2016-01-28T02:40:28+00:00","breadcrumb":{"@id":"http:\/\/weizn.net\/?p=160#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["http:\/\/weizn.net\/?p=160"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/weizn.net\/?p=160#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"http:\/\/weizn.net\/"},{"@type":"ListItem","position":2,"name":"\u5173\u4e8esocket\u8c03\u7528send()\u4ea7\u751fSIGPIPE\u4fe1\u53f7"}]},{"@type":"Article","@id":"http:\/\/weizn.net\/?p=160#article","isPartOf":{"@id":"http:\/\/weizn.net\/?p=160#webpage"},"author":{"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264"},"headline":"\u5173\u4e8esocket\u8c03\u7528send()\u4ea7\u751fSIGPIPE\u4fe1\u53f7","datePublished":"2016-01-28T02:40:28+00:00","dateModified":"2016-01-28T02:40:28+00:00","mainEntityOfPage":{"@id":"http:\/\/weizn.net\/?p=160#webpage"},"wordCount":104,"commentCount":0,"publisher":{"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264"},"articleSection":["Linux"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/weizn.net\/?p=160#respond"]}]},{"@type":["Person","Organization"],"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264","name":"zinan","logo":{"@id":"http:\/\/weizn.net\/#personlogo"}}]}},"_links":{"self":[{"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/posts\/160","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=160"}],"version-history":[{"count":0,"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/posts\/160\/revisions"}],"wp:attachment":[{"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=160"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=160"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}