Stiffstream / restinio

Cross-platform, efficient, customizable, and robust asynchronous HTTP(S)/WebSocket server C++ library with the right balance between performance and ease of use
Other
1.15k stars 93 forks source link

sendfile() opens the file exclusively under Windows #25

Closed rcane closed 5 years ago

rcane commented 5 years ago

The ::CreateFileA used to open the file for sendfile does not have the FILE_SHARE_READ option set. This means that the file is opened exclusively and the next attempt to open the file will fail until the sendfile operation has finished and the handle is closed.

eao197 commented 5 years ago

You can try now the version from Master branch.

rcane commented 5 years ago

Works.

Btw, would you like me to close my open issues when I think they are fixed?

eao197 commented 5 years ago

Works.

Great news!

Btw, would you like me to close my open issues when I think they are fixed?

Yes.