fsync()-in webdav PUT
bra at fsn.hu
Tue Feb 27 10:21:23 UTC 2018
I would like to make sure when a WebDAV (with ngx_http_dav) PUT returns
the file is reliably on the storage. This needs an fsync() on the file.
It would be easy to put that into the module, but it would block the
whole nginx process.
Now, that nginx supports running threads, are there plans to convert at
least DAV PUTs into it's own thread(pool), so make it possible to do
non-blocking (from nginx's event loop PoV) fsync on the uploaded file?
More information about the nginx