mirror of
https://github.com/boostorg/beast.git
synced 2025-08-02 14:24:31 +02:00
Fix file open with append_existing flag on posix
fixes #2011 closes #2027
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
Version XXX:
|
Version XXX:
|
||||||
|
|
||||||
|
* Fix file open with append_existing flag on posix.
|
||||||
* Websocket SSL `teardown` also tears down underlying TCP.
|
* Websocket SSL `teardown` also tears down underlying TCP.
|
||||||
* Update WebSocket examples to set TLS SNI.
|
* Update WebSocket examples to set TLS SNI.
|
||||||
* Add handler tracking locations to websocket.
|
* Add handler tracking locations to websocket.
|
||||||
|
@@ -172,7 +172,7 @@ open(char const* path, file_mode mode, error_code& ec)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case file_mode::append_existing:
|
case file_mode::append_existing:
|
||||||
f = O_WRONLY;
|
f = O_WRONLY | O_APPEND;
|
||||||
#if BOOST_BEAST_USE_POSIX_FADVISE
|
#if BOOST_BEAST_USE_POSIX_FADVISE
|
||||||
advise = POSIX_FADV_SEQUENTIAL;
|
advise = POSIX_FADV_SEQUENTIAL;
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user