{"id":1321,"date":"2026-10-25T04:00:00","date_gmt":"2026-10-24T19:00:00","guid":{"rendered":"https:\/\/quantumsea.net\/?p=1321"},"modified":"2026-10-23T03:29:54","modified_gmt":"2026-10-22T18:29:54","slug":"qs-socket-shutdown-half-close-20261023","status":"publish","type":"post","link":"https:\/\/quantumsea.net\/?p=1321","title":{"rendered":"\u30bd\u30b1\u30c3\u30c8\u306e\u534a\u9589\u9396\u3001\u9001\u4fe1\u3092\u7d42\u3048\u3066\u3082\u8fd4\u7b54\u3092\u53d7\u3051\u53d6\u308c\u308b\u7406\u7531"},"content":{"rendered":"<p>\u4f9d\u983c\u306e\u30c7\u30fc\u30bf\u3092\u9001\u308a\u7d42\u3048\u305f\u306e\u3067\u3001\u76f8\u624b\u306b\u7d42\u308f\u308a\u3092\u4f1d\u3048\u305f\u3044\u3002\u3057\u304b\u3057\u3001\u76f8\u624b\u304c\u8fd4\u3059\u7d50\u679c\u306f\u3053\u308c\u304b\u3089\u53d7\u3051\u53d6\u308a\u305f\u3044\u3002\u3053\u306e\u3068\u304d\u3001\u901a\u4fe1\u5168\u4f53\u3092\u9589\u3058\u308b\u64cd\u4f5c\u3068\u3001\u81ea\u5206\u304b\u3089\u9001\u308b\u65b9\u5411\u3060\u3051\u3092\u7d42\u3048\u308b\u64cd\u4f5c\u306f\u533a\u5225\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30bd\u30b1\u30c3\u30c8\u306e<strong>shutdown\u3068\u534a\u9589\u9396<\/strong>\u306f\u3001\u3053\u306e\u9055\u3044\u3092\u6271\u3046\u4ed5\u7d44\u307f\u3067\u3059\u3002\u3053\u3053\u3067\u306f\u540c\u3058\u8a08\u7b97\u6a5f\u5185\u306eAF_UNIX\u30fbSOCK_STREAM\u306e\u30bd\u30b1\u30c3\u30c8\u5bfe\u3092\u4f7f\u3044\u3001\u9001\u4fe1\u306e\u7d42\u4e86\u3001\u53d7\u4fe1\u3067\u898b\u3048\u308bEOF\u3001\u8a18\u8ff0\u5b50\u306eclose\u3092\u5206\u3051\u3066\u8003\u3048\u307e\u3059\u3002Linux\u306e\u4ed5\u69d8\u8aac\u660e\u3068\u3001\u624b\u5143\u306emacOS\u3067\u5b9f\u884c\u3057\u305f\u5c0f\u3055\u306a\u89b3\u6e2c\u4f8b\u3092\u533a\u5225\u3057\u3066\u793a\u3057\u307e\u3059\u3002<\/p>\n<section class=\"influvetor-quick-summary\">\n<p><strong>\u7c21\u5358\u306b\u307e\u3068\u3081\u308b\u3068\uff1f<\/strong><\/p>\n<ul>\n<li>shutdown\u306eSHUT_WR\u306f\u3001\u305d\u306e\u30bd\u30b1\u30c3\u30c8\u304b\u3089\u306e\u4ee5\u5f8c\u306e\u9001\u4fe1\u3092\u6b62\u3081\u307e\u3059\u3002\u53d7\u4fe1\u3059\u308b\u65b9\u5411\u307e\u3067\u6b62\u3081\u308b\u6307\u5b9a\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/li>\n<li>\u6b63\u306e\u9577\u3055\u3092\u8981\u6c42\u3059\u308b\u30b9\u30c8\u30ea\u30fc\u30e0\u53d7\u4fe1\u3067\u306f\u3001\u76f8\u624b\u306e\u6b63\u5e38\u306a\u9001\u4fe1\u7d42\u4e86\u5f8c\u3001\u6b8b\u308b\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u7d42\u3048\u308b\u3068EOF\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002\u300c\u4eca\u30c7\u30fc\u30bf\u304c\u306a\u3044\u300d\u3068\u306f\u9055\u3044\u307e\u3059\u3002<\/li>\n<li>close\u306f\u8a18\u8ff0\u5b50\u3092\u9589\u3058\u308b\u64cd\u4f5c\u3067\u3059\u3002\u4f9d\u983c\u306e\u7d42\u7aef\u3092\u77e5\u3089\u305b\u306a\u304c\u3089\u8fd4\u7b54\u3092\u5f85\u3064\u8a2d\u8a08\u3067\u306f\u3001\u9001\u4fe1\u7d42\u4e86\u3068\u8a18\u8ff0\u5b50\u306e\u89e3\u653e\u3092\u5225\u306e\u6bb5\u968e\u306b\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/section>\n<h2>\u4e8c\u3064\u306e\u65b9\u5411\u3092\u6301\u3064\u63a5\u7d9a\u3068\u3057\u3066\u898b\u308b<\/h2>\n<p>socketpair\u306f\u3001\u65e2\u306b\u3064\u306a\u304c\u3063\u305f\u540d\u524d\u306e\u306a\u3044\u30bd\u30b1\u30c3\u30c8\u3092\u4e8c\u3064\u4f5c\u308a\u3001\u305d\u308c\u305e\u308c\u3092\u53c2\u7167\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u8a18\u8ff0\u5b50\u3092\u8fd4\u3057\u307e\u3059\u3002[1] AF_UNIX\u306f\u540c\u3058\u8a08\u7b97\u6a5f\u5185\u306e\u901a\u4fe1\u306b\u4f7f\u3046\u65b9\u5f0f\u3067\u3001\u3053\u3053\u3067\u306f\u30d0\u30a4\u30c8\u5217\u3092\u6271\u3046SOCK_STREAM\u3092\u9078\u3073\u307e\u3059\u3002[2] \u56f3\u3067\u306f\u4e8c\u3064\u306e\u7aef\u3092A\u3068B\u3068\u547c\u3073\u3001A\u304b\u3089B\u3078\u9001\u308b\u65b9\u5411\u3068\u3001B\u304b\u3089A\u3078\u8fd4\u3059\u65b9\u5411\u3092\u5206\u3051\u307e\u3059\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070A\u304c\u691c\u67fb\u3057\u3066\u307b\u3057\u3044\u6587\u7ae0\u3092\u6e21\u3057\u3001B\u304c\u6700\u5f8c\u307e\u3067\u53d7\u3051\u53d6\u3063\u3066\u304b\u3089\u7d50\u679c\u3092\u8fd4\u3059\u51e6\u7406\u3092\u8003\u3048\u307e\u3059\u3002A\u304c\u4f55\u3082\u305b\u305a\u8fd4\u7b54\u3092\u5f85\u3061\u3001B\u304c\u5165\u529b\u306e\u7d42\u308f\u308a\u3092\u5f85\u3061\u7d9a\u3051\u308b\u3068\u3001\u4e92\u3044\u306b\u76f8\u624b\u306e\u6b21\u306e\u52d5\u304d\u3092\u5f85\u3064\u69cb\u6210\u306b\u306a\u308a\u5f97\u307e\u3059\u3002\u672c\u6587\u306e\u9577\u3055\u3084\u7d42\u7aef\u3092\u5225\u9014\u53d6\u308a\u6c7a\u3081\u308b\u304b\u3001\u9001\u4fe1\u65b9\u5411\u306e\u7d42\u4e86\u3067\u5165\u529b\u306e\u7d42\u308f\u308a\u3092\u793a\u3059\u304b\u3092\u3001\u901a\u4fe1\u624b\u9806\u3068\u3057\u3066\u6c7a\u3081\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h2>SHUT_WR\u3067\u6b62\u3081\u308b\u306e\u306f\u3001\u81ea\u5206\u304b\u3089\u9001\u308b\u65b9\u5411<\/h2>\n<p>shutdown\u306e\u6307\u5b9a\u306b\u306f\u3001\u53d7\u4fe1\u3092\u6b62\u3081\u308bSHUT_RD\u3001\u9001\u4fe1\u3092\u6b62\u3081\u308bSHUT_WR\u3001\u4e21\u65b9\u3092\u6b62\u3081\u308bSHUT_RDWR\u304c\u3042\u308a\u307e\u3059\u3002[3] A\u304cSHUT_WR\u3092\u6210\u529f\u3055\u305b\u305f\u5834\u5408\u3001\u3053\u306e\u63a5\u7d9a\u306b\u3064\u3044\u3066A\u304c\u3055\u3089\u306b\u4f9d\u983c\u3092\u9001\u308a\u8db3\u3059\u6bb5\u968e\u306f\u7d42\u308f\u308a\u307e\u3059\u3002\u4e00\u65b9\u3067\u3001B\u304b\u3089\u5c4a\u304f\u7d50\u679c\u3092A\u304c\u53d7\u3051\u53d6\u308b\u65b9\u5411\u306f\u6b8b\u305b\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u304c\u3001\u7247\u65b9\u5411\u3060\u3051\u3092\u9589\u3058\u308b\u300c\u534a\u9589\u9396\u300d\u3068\u547c\u3070\u308c\u308b\u8003\u3048\u65b9\u3067\u3059\u3002A\u304c\u9001\u308b\u65b9\u5411\u306e\u7d42\u4e86\u3092\u3001B\u304c\u9001\u308b\u65b9\u5411\u306e\u7d42\u4e86\u3078\u8aad\u307f\u66ff\u3048\u3066\u306f\u3044\u3051\u307e\u305b\u3093\u3002\u4e21\u7aef\u306e\u72b6\u614b\u3092\u4e00\u3064\u306e\u300c\u63a5\u7d9a\u6e08\u307f\uff0f\u5207\u65ad\u6e08\u307f\u300d\u3060\u3051\u3067\u8868\u3059\u3068\u3001\u3069\u3061\u3089\u304b\u3089\u306e\u30c7\u30fc\u30bf\u304c\u307e\u3060\u6765\u308b\u306e\u304b\u3092\u898b\u5931\u3044\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<figure><a href=\"https:\/\/quantumsea.net\/wp-content\/uploads\/2026\/10\/qs-socket-shutdown-half-close-20261023-figure-3c6a532cbb2b.png\"><img decoding=\"async\" src=\"https:\/\/quantumsea.net\/wp-content\/uploads\/2026\/10\/qs-socket-shutdown-half-close-20261023-figure-3c6a532cbb2b.png\" alt=\"A\u304c7\u30d0\u30a4\u30c8\u306e\u4f9d\u983c\u3092\u9001\u308a\u9001\u4fe1\u3092\u7d42\u4e86\u3057\u3001B\u304cEOF\u307e\u3067\u8aad\u3093\u3067\u304b\u30892\u30d0\u30a4\u30c8\u306e\u7d50\u679c\u3092A\u3078\u8fd4\u3059\u56db\u6bb5\u968e\u3002\" style=\"width:100%;height:auto;max-width:1080px\" \/><\/a><figcaption>\u72ec\u81ea\u4f8b\u3002A\u306e\u9001\u4fe1\u7d42\u4e86\u5f8c\u3082\u3001B\u304b\u3089A\u3078\u306e\u8fd4\u7b54\u306f\u5225\u306e\u65b9\u5411\u3068\u3057\u3066\u6b8b\u308b\u3002Linux\u306eAPI\u8aac\u660e\u3068\u3001macOS\u4e0a\u306eAF_UNIX\u30fbSOCK_STREAM\u306e\u89b3\u6e2c\u3092\u5bfe\u5fdc\u3055\u305b\u305f\u56f3\u3002<\/figcaption><\/figure>\n<h2>7\u30d0\u30a4\u30c8\u3092\u53d7\u3051\u7d42\u3048\u3066\u304b\u3089\u30012\u30d0\u30a4\u30c8\u3092\u8fd4\u3059<\/h2>\n<p>\u624b\u5143\u306e\u4f8b\u3067\u306f\u3001Python\u306esocketpair\u3067\u4e8c\u3064\u306e\u7aef\u3092\u4f5c\u308a\u3001A\u304b\u3089ASCII\u306esea\u3068wave\u3092\u9806\u306b\u9001\u4fe1\u3057\u307e\u3057\u305f\u3002\u5185\u5bb9\u306f\u5408\u8a087\u30d0\u30a4\u30c8\u3067\u3059\u3002\u7d9a\u3044\u3066A\u304cSHUT_WR\u3092\u884c\u3044\u3001B\u306f\u4e00\u5ea6\u306b\u6700\u59272\u30d0\u30a4\u30c8\u305a\u3064\u53d7\u4fe1\u3057\u3066\u3001EOF\u307e\u3067\u8aad\u307f\u7d9a\u3051\u307e\u3059\u3002B\u306f\u53d7\u3051\u53d6\u3063\u305f\u5185\u5bb9\u304cseawave\u3067\u3042\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3001OK\u3068\u3044\u30462\u30d0\u30a4\u30c8\u3092\u8fd4\u3057\u305f\u5f8c\u3001\u81ea\u5206\u306e\u9001\u4fe1\u65b9\u5411\u3092\u7d42\u3048\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u5b9f\u884c\u3067\u306f\u3001B\u306e\u53d7\u4fe1\u7247\u306fse\u3001aw\u3001av\u3001e\u3068\u306a\u308a\u3001\u305d\u306e\u5f8c\u306b\u7a7a\u306e\u30d0\u30a4\u30c8\u5217\u3092\u53d7\u3051\u53d6\u308a\u307e\u3057\u305f\u3002A\u306f\u81ea\u5206\u306e\u9001\u4fe1\u3092\u7d42\u3048\u305f\u5f8c\u3067\u3082OK\u3092\u53d7\u4fe1\u3067\u304d\u307e\u3057\u305f\u3002\u3053\u3053\u3067\u78ba\u8a8d\u3057\u305f\u306e\u306f\u3001\u3053\u306e\u9806\u5e8f\u3067\u52d5\u304f\u5c0f\u3055\u306a\u30ed\u30fc\u30ab\u30eb\u4f8b\u3067\u3059\u3002macOS\u4e0a\u306e\u7d50\u679c\u3092\u3001Linux\u30ab\u30fc\u30cd\u30eb\u3067\u8a66\u9a13\u3057\u305f\u8a3c\u62e0\u3084\u3001\u5168\u30bd\u30b1\u30c3\u30c8\u65b9\u5f0f\u3067\u540c\u3058\u52d5\u4f5c\u306b\u306a\u308b\u4fdd\u8a3c\u306b\u306f\u3057\u307e\u305b\u3093\u3002<\/p>\n<p>\u307e\u305f\u3001\u6700\u521d\u306bsea\u3068wave\u3078\u5206\u3051\u3066\u9001\u3063\u305f\u5883\u76ee\u306f\u30012\u30d0\u30a4\u30c8\u305a\u3064\u306e\u53d7\u4fe1\u7247\u306e\u5883\u76ee\u3068\u4e00\u81f4\u3057\u3066\u3044\u307e\u305b\u3093\u3002\u4eca\u56de\u306e\u4e3b\u984c\u306f\u5206\u5272\u6570\u3067\u306f\u306a\u304f\u7d42\u4e86\u306e\u4f1d\u3048\u65b9\u3067\u3059\u304c\u3001\u30c7\u30fc\u30bf\u306e\u4e00\u90e8\u304c\u5c4a\u3044\u305f\u3053\u3068\u3068\u3001\u4f9d\u983c\u5168\u4f53\u3092\u53d7\u3051\u53d6\u3063\u305f\u3053\u3068\u3082\u5206\u3051\u3066\u8ffd\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u56f3\u306e7\u30682\u306f\u72ec\u81ea\u4f8b\u306e\u30d0\u30a4\u30c8\u6570\u3067\u3042\u308a\u3001\u901a\u4fe1\u6027\u80fd\u306e\u6bd4\u8f03\u5024\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<h2>EOF\u3068\u3001\u4eca\u306f\u53d7\u3051\u53d6\u308c\u306a\u3044\u72b6\u614b\u3092\u6df7\u540c\u3057\u306a\u3044<\/h2>\n<p>Linux\u306erecv\u306e\u8aac\u660e\u3067\u306f\u3001\u30b9\u30c8\u30ea\u30fc\u30e0\u306e\u76f8\u624b\u304c\u6b63\u5e38\u306b\u9001\u4fe1\u3092\u7d42\u3048\u305f\u5834\u5408\u3001\u53d7\u4fe1\u306f0\u3092\u8fd4\u3057\u307e\u3059\u3002\u4e00\u65b9\u3001\u30c7\u30fc\u30bf\u304c\u307e\u3060\u306a\u304f\u975e\u30d6\u30ed\u30c3\u30ad\u30f3\u30b0\u53d7\u4fe1\u304c\u5f85\u3064\u5fc5\u8981\u306e\u3042\u308b\u5834\u5408\u306f\u3001EAGAIN\u307e\u305f\u306fEWOULDBLOCK\u3067\u5931\u6557\u3057\u307e\u3059\u3002[4] EOF\u306f\u305d\u306e\u65b9\u5411\u306e\u6b63\u5e38\u306a\u7d42\u4e86\u3092\u793a\u3059\u89b3\u6e2c\u3067\u3042\u308a\u3001\u5f85\u3066\u3070\u6b21\u304c\u6765\u308b\u304b\u3082\u3057\u308c\u306a\u3044\u4e00\u6642\u7684\u306a\u7a7a\u304d\u3068\u306f\u9055\u3044\u307e\u3059\u3002<\/p>\n<p>\u305f\u3060\u3057\u30010\u3068\u3044\u3046\u6570\u3060\u3051\u3067\u306f\u5224\u65ad\u3067\u304d\u307e\u305b\u3093\u3002\u53d7\u4fe1\u3092\u8981\u6c42\u3057\u305f\u9577\u3055\u81ea\u4f53\u304c0\u306e\u5834\u5408\u3084\u3001\u9577\u30550\u306e\u30c7\u30fc\u30bf\u30b0\u30e9\u30e0\u3092\u53d7\u4fe1\u3057\u305f\u5834\u5408\u306b\u30820\u304c\u8fd4\u308a\u5f97\u307e\u3059\u3002\u672c\u7a3f\u306e\u8aac\u660e\u306f\u3001\u6b63\u306e\u9577\u3055\u3092\u8981\u6c42\u3059\u308b\u30b9\u30c8\u30ea\u30fc\u30e0\u53d7\u4fe1\u3092\u524d\u63d0\u306b\u3057\u3066\u3044\u307e\u3059\u3002\u30bd\u30b1\u30c3\u30c8\u306e\u7a2e\u985e\u3001\u8981\u6c42\u3057\u305f\u9577\u3055\u3001\u623b\u308a\u5024\u3001\u30a8\u30e9\u30fc\u3092\u4e00\u7dd2\u306b\u8a18\u9332\u3057\u3066\u521d\u3081\u3066\u3001\u7d42\u7aef\u3068\u3057\u3066\u6271\u3048\u308b\u6761\u4ef6\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u540c\u69d8\u306b\u3001\u901a\u4fe1\u304c\u30a8\u30e9\u30fc\u3067\u9014\u5207\u308c\u305f\u3053\u3068\u3092\u3001\u6b63\u5e38\u306b\u5168\u3066\u5c4a\u3044\u305f\u3053\u3068\u3078\u5909\u63db\u3057\u3066\u306f\u3044\u3051\u307e\u305b\u3093\u3002\u53d7\u4fe1\u306e\u7d42\u4e86\u3092\u89b3\u6e2c\u3057\u3066\u3082\u3001\u9001\u3089\u308c\u305f\u5185\u5bb9\u304c\u30a2\u30d7\u30ea\u306e\u671f\u5f85\u3059\u308b\u5b8c\u5168\u306a\u4f9d\u983c\u304b\u306f\u5225\u306e\u691c\u67fb\u3067\u3059\u3002\u4ef6\u6570\u3001\u5f62\u5f0f\u3001\u5fc5\u8981\u306a\u9805\u76ee\u306a\u3069\u3001\u30a2\u30d7\u30ea\u5074\u306e\u53d7\u5165\u6761\u4ef6\u3082\u7528\u610f\u3057\u307e\u3059\u3002<\/p>\n<h2>close\u306f\u3001\u6700\u5f8c\u306e\u7247\u4ed8\u3051\u3068\u3057\u3066\u5225\u306b\u8003\u3048\u308b<\/h2>\n<p>close\u306f\u6307\u5b9a\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u8a18\u8ff0\u5b50\u3092\u9589\u3058\u3001\u305d\u306e\u756a\u53f7\u3092\u518d\u5229\u7528\u53ef\u80fd\u306b\u3059\u308b\u64cd\u4f5c\u3067\u3059\u3002\u540c\u3058\u5b9f\u4f53\u3078\u306e\u5225\u306e\u53c2\u7167\u304c\u3042\u308b\u5834\u5408\u3082\u3042\u308a\u3001\u4e00\u3064\u306e\u8a18\u8ff0\u5b50\u3092\u9589\u3058\u308b\u3053\u3068\u3068\u3001\u5168\u3066\u306e\u53c2\u7167\u3092\u306a\u304f\u3059\u3053\u3068\u3082\u540c\u4e00\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002[5] \u3053\u306e\u4f8b\u3067\u306f\u3001A\u3068B\u304c\u5fc5\u8981\u306a\u53d7\u4fe1\u307e\u3067\u7d42\u3048\u305f\u5f8c\u3067\u3001\u4e21\u65b9\u306e\u8a18\u8ff0\u5b50\u3092\u9589\u3058\u307e\u3057\u305f\u3002<\/p>\n<p>\u4f9d\u983c\u3092\u9001\u3063\u305f\u76f4\u5f8c\u306bA\u306e\u8a18\u8ff0\u5b50\u3092close\u3059\u308b\u3068\u3001\u305d\u306e\u8a18\u8ff0\u5b50\u3092\u4f7f\u3063\u3066\u8fd4\u7b54\u3092\u8aad\u3080\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002\u8fd4\u7b54\u304c\u5fc5\u8981\u306a\u8a2d\u8a08\u306a\u3089\u3001\u9001\u4fe1\u306e\u7d42\u4e86\u3092\u901a\u77e5\u3059\u308b\u6bb5\u968e\u3068\u3001\u53d7\u4fe1\u3092\u7d42\u3048\u3066\u8cc7\u6e90\u3092\u89e3\u653e\u3059\u308b\u6bb5\u968e\u3092\u5206\u3051\u307e\u3059\u3002\u9006\u306b\u3001\u901a\u4fe1\u65b9\u5f0f\u3084\u4e0a\u4f4d\u306e\u624b\u9806\u304c\u534a\u9589\u9396\u3092\u60f3\u5b9a\u3057\u3066\u3044\u306a\u3044\u306a\u3089\u3001SHUT_WR\u3092\u4ed8\u3051\u308c\u3070\u89e3\u6c7a\u3059\u308b\u3068\u6c7a\u3081\u3064\u3051\u305a\u3001\u305d\u306e\u65b9\u5f0f\u306e\u7d42\u4e86\u898f\u5247\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<p>shutdown\u306f\u30a2\u30d7\u30ea\u306e\u51e6\u7406\u6210\u529f\u3092\u78ba\u8a8d\u3059\u308b\u547d\u4ee4\u3067\u3082\u3042\u308a\u307e\u305b\u3093\u3002\u4f9d\u983c\u3092\u51fa\u3057\u7d42\u3048\u305f\u3053\u3068\u3001\u76f8\u624b\u304c\u7d42\u7aef\u307e\u3067\u8aad\u3093\u3060\u3053\u3068\u3001\u51e6\u7406\u7d50\u679c\u304c\u5c4a\u3044\u305f\u3053\u3068\u3001\u8a18\u8ff0\u5b50\u3092\u9589\u3058\u305f\u3053\u3068\u3092\u5225\u3005\u306b\u78ba\u8a8d\u3057\u307e\u3059\u3002\u3053\u306e\u56db\u3064\u3092\u5206\u3051\u308b\u3068\u3001\u5358\u306b\u300c\u9001\u4fe1\u5b8c\u4e86\u300d\u3068\u66f8\u304b\u308c\u305f\u30ed\u30b0\u304b\u3089\u3001\u3069\u3053\u307e\u3067\u9032\u3093\u3060\u306e\u304b\u3092\u8aad\u307f\u53d6\u308a\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>\u51fa\u5178<\/h2>\n<ol>\n<li>Linux man-pages 6.19\u3001<a href=\"https:\/\/man7.org\/linux\/man-pages\/man2\/socketpair.2.html\">socketpair(2)<\/a>\u3001DESCRIPTION\u3002<\/li>\n<li>\u540c\u3001<a href=\"https:\/\/man7.org\/linux\/man-pages\/man7\/unix.7.html\">unix(7)<\/a>\u3001DESCRIPTION\u3002<\/li>\n<li>\u540c\u3001<a href=\"https:\/\/man7.org\/linux\/man-pages\/man2\/shutdown.2.html\">shutdown(2)<\/a>\u3001DESCRIPTION\u3068RETURN VALUE\u3002<\/li>\n<li>\u540c\u3001<a href=\"https:\/\/man7.org\/linux\/man-pages\/man2\/recv.2.html\">recv(2)<\/a>\u3001DESCRIPTION\u3068RETURN VALUE\u3002<\/li>\n<li>\u540c\u3001<a href=\"https:\/\/man7.org\/linux\/man-pages\/man2\/close.2.html\">close(2)<\/a>\u3001DESCRIPTION\u3002\u5177\u4f53\u7684\u306a\u6587\u5b57\u5217\u3001\u624b\u9806\u3001\u56f3\u306f\u72ec\u81ea\u4f8b\u3002<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>\u4f9d\u983c\u306e\u30c7\u30fc\u30bf\u3092\u9001\u308a\u7d42\u3048\u305f\u306e\u3067\u3001\u76f8\u624b\u306b\u7d42\u308f\u308a\u3092\u4f1d\u3048\u305f\u3044\u3002\u3057\u304b\u3057\u3001\u76f8\u624b\u304c\u8fd4\u3059\u7d50\u679c\u306f\u3053\u308c\u304b\u3089\u53d7\u3051\u53d6\u308a\u305f\u3044\u3002\u3053\u306e\u3068\u304d\u3001\u901a\u4fe1\u5168\u4f53\u3092\u9589\u3058\u308b\u64cd\u4f5c\u3068\u3001\u81ea\u5206\u304b\u3089\u9001\u308b\u65b9\u5411\u3060\u3051\u3092\u7d42\u3048\u308b\u64cd\u4f5c\u306f\u533a\u5225\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 \u30bd\u30b1\u30c3\u30c8\u306eshutdown [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":1319,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":false,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[30],"tags":[244],"class_list":["post-1321","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-computing","tag-linux"],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/quantumsea.net\/wp-content\/uploads\/2026\/10\/qs-socket-shutdown-half-close-20261023-featured-9d15b3f354a4.png","_links":{"self":[{"href":"https:\/\/quantumsea.net\/index.php?rest_route=\/wp\/v2\/posts\/1321","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/quantumsea.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/quantumsea.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/quantumsea.net\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/quantumsea.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1321"}],"version-history":[{"count":1,"href":"https:\/\/quantumsea.net\/index.php?rest_route=\/wp\/v2\/posts\/1321\/revisions"}],"predecessor-version":[{"id":1322,"href":"https:\/\/quantumsea.net\/index.php?rest_route=\/wp\/v2\/posts\/1321\/revisions\/1322"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/quantumsea.net\/index.php?rest_route=\/wp\/v2\/media\/1319"}],"wp:attachment":[{"href":"https:\/\/quantumsea.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1321"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/quantumsea.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1321"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/quantumsea.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1321"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}