fsync()-in webdav PUT

Nagy, Attila bra at fsn.hu
Tue Feb 27 10:21:23 UTC 2018


Hi,

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?

Thanks,



More information about the nginx mailing list