)]}'
{
  "commit": "970d8a10dd81431a432ca7896fab1b4dd2440338",
  "tree": "69a77bac2d1604f52cc22203d0d40656982b3150",
  "parents": [
    "b7109a0a7595d2cfe0f44c7db285cfd7fd509ddf"
  ],
  "author": {
    "name": "Maxim Dounin",
    "email": "mdounin@mdounin.ru",
    "time": "Thu Mar 03 21:14:19 2016 +0300"
  },
  "committer": {
    "name": "Maxim Dounin",
    "email": "mdounin@mdounin.ru",
    "time": "Thu Mar 03 21:14:19 2016 +0300"
  },
  "message": "Copy filter: fixed sendfile aio handlers to set ctx-\u003eaio.\n\nSendfile handlers (aio preload and thread handler) are called within\nctx-\u003eoutput_filter() in ngx_output_chain(), and hence ctx-\u003eaio cannot\nbe set directly in ngx_output_chain().  Meanwhile, it must be set to\nmake sure loop within ngx_output_chain() will be properly terminated.\n\nThere are no known cases that trigger the problem, though in theory\nsomething like aio + sub filter (something that needs body in memory,\nand can also free some memory buffers) + sendfile can result in\n\"task already active\" and \"second aio post\" alerts.\n\nThe fix is to set ctx-\u003eaio in ngx_http_copy_aio_sendfile_preload()\nand ngx_http_copy_thread_handler().\n\nFor consistency, ctx-\u003eaio is no longer set explicitly in\nngx_output_chain_copy_buf(), as it\u0027s now done in\nngx_http_copy_thread_handler().\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "252359af67eda734c61e963b1f9dcd06b08ccfda",
      "old_mode": 33188,
      "old_path": "src/core/ngx_output_chain.c",
      "new_id": "b8361dcd6461a79393e0c2ef09476b293f843cc1",
      "new_mode": 33188,
      "new_path": "src/core/ngx_output_chain.c"
    },
    {
      "type": "modify",
      "old_id": "c6d03eec0bc4a7eb13acf63a5cb20ee9cd1c0899",
      "old_mode": 33188,
      "old_path": "src/http/ngx_http_copy_filter_module.c",
      "new_id": "c696fb6f9c1a4313ed1b2a82775ccbea803f8112",
      "new_mode": 33188,
      "new_path": "src/http/ngx_http_copy_filter_module.c"
    }
  ]
}
