)]}'
{
  "commit": "e2e3a5eb52641e9224444a47f7540ae7fe4f631f",
  "tree": "cbb6329257bcf64c2060b7744fc5094716b355d4",
  "parents": [
    "f832b67df4cc1d47b40bca1dbb69336d1178a645"
  ],
  "author": {
    "name": "Maxim Dounin",
    "email": "mdounin@mdounin.ru",
    "time": "Fri Oct 29 20:21:51 2021 +0300"
  },
  "committer": {
    "name": "Maxim Dounin",
    "email": "mdounin@mdounin.ru",
    "time": "Fri Oct 29 20:21:51 2021 +0300"
  },
  "message": "Fixed sendfile() limit handling on Linux.\n\nOn Linux starting with 2.6.16, sendfile() silently limits all operations\nto MAX_RW_COUNT, defined as (INT_MAX \u0026 PAGE_MASK).  This incorrectly\ntriggered the interrupt check, and resulted in 0-sized writev() on the\nnext loop iteration.\n\nFix is to make sure the limit is always checked, so we will return from\nthe loop if the limit is already reached even if number of bytes sent is\nnot exactly equal to the number of bytes we\u0027ve tried to send.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "5695839b0a26cae65920bff38a2a53bc568a78bd",
      "old_mode": 33188,
      "old_path": "src/os/unix/ngx_linux_sendfile_chain.c",
      "new_id": "91e7f1d9317945243fd55ddb43a4a375cd621012",
      "new_mode": 33188,
      "new_path": "src/os/unix/ngx_linux_sendfile_chain.c"
    }
  ]
}
