)]}'
{
  "commit": "0e3b423dc6c6653d600f4bf1687f0653be04a830",
  "tree": "3b9f1e9cae0b9d73489bb1e046f6999dac1e445c",
  "parents": [
    "74d939974d430a2c2e71b0134114d2a7b04dcc20"
  ],
  "author": {
    "name": "Maxim Dounin",
    "email": "mdounin@mdounin.ru",
    "time": "Fri May 11 13:33:06 2012 +0000"
  },
  "committer": {
    "name": "Maxim Dounin",
    "email": "mdounin@mdounin.ru",
    "time": "Fri May 11 13:33:06 2012 +0000"
  },
  "message": "Accept moderation in case of EMFILE/ENFILE.\n\nIn case of EMFILE/ENFILE returned from accept() we disable accept events,\nand (in case of no accept mutex used) arm timer to re-enable them later.\nWith accept mutex we just drop it, and rely on normal accept mutex handling\nto re-enable accept events once it\u0027s acquired again.\n\nAs we now handle errors in question, logging level was changed to \"crit\"\n(instead of \"alert\" used for unknown errors).\n\nNote: the code might call ngx_enable_accept_events() multiple times if\nthere are many listen sockets.  The ngx_enable_accept_events() function was\nmodified to check if connection is already active (via c-\u003eread-\u003eactive) and\nskip it then, thus making multiple calls safe.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "23cb85b14799f49d8852c8e3ca80ab85490ba751",
      "old_mode": 33188,
      "old_path": "src/event/ngx_event_accept.c",
      "new_id": "6087d60daaf16d82c1f799d87b5e1f6ff5fb39a7",
      "new_mode": 33188,
      "new_path": "src/event/ngx_event_accept.c"
    },
    {
      "type": "modify",
      "old_id": "78af40bfe50905009b2463af376dfffe8a536ec9",
      "old_mode": 33188,
      "old_path": "src/os/unix/ngx_errno.h",
      "new_id": "2912dea0441f2292561997f2fb0c281440460bec",
      "new_mode": 33188,
      "new_path": "src/os/unix/ngx_errno.h"
    },
    {
      "type": "modify",
      "old_id": "91b50db8c2b50749bd2be8b8d9f22747e8daf26f",
      "old_mode": 33188,
      "old_path": "src/os/win32/ngx_errno.h",
      "new_id": "5b11a65b0f568b25a45750298072399a54156ed7",
      "new_mode": 33188,
      "new_path": "src/os/win32/ngx_errno.h"
    }
  ]
}
