diff options
| author | Wladimir J. van der Laan <[email protected]> | 2017-08-25 12:39:30 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2017-08-25 15:37:24 +0200 |
| commit | 82dd7195e1fb943f9cd45a48188f9678219c0206 (patch) | |
| tree | 01080ed5fe5bef69ea7288bf04811d52bc4e18aa /src/httpserver.cpp | |
| parent | Merge #11112: [developer-notes] By default, declare single-argument construct... (diff) | |
| download | discoin-82dd7195e1fb943f9cd45a48188f9678219c0206.tar.xz discoin-82dd7195e1fb943f9cd45a48188f9678219c0206.zip | |
rpc: Write authcookie atomically
Use POSIX rename atomicity at the `bitcoind` side to create a working
cookie atomically:
- Write `.cookie.tmp`, close file
- Rename `.cookie.tmp` to `.cookie`
This avoids clients reading invalid/partial cookies as in #11129.
Diffstat (limited to 'src/httpserver.cpp')
0 files changed, 0 insertions, 0 deletions