diff options
| author | Wladimir J. van der Laan <[email protected]> | 2017-08-28 09:40:08 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2017-08-28 09:40:15 +0200 |
| commit | c7229ac36e366ec4e23e3c131abf3bb3736b7e5d (patch) | |
| tree | aa1794d770ee294534ae3550c96c8e8b8c62f4ce /src/httpserver.cpp | |
| parent | Merge #11169: [GUI] Make tabs toolbar no longer have a context menu (diff) | |
| parent | rpc: Write authcookie atomically (diff) | |
| download | discoin-c7229ac36e366ec4e23e3c131abf3bb3736b7e5d.tar.xz discoin-c7229ac36e366ec4e23e3c131abf3bb3736b7e5d.zip | |
Merge #11131: rpc: Write authcookie atomically
82dd719 rpc: Write authcookie atomically (Wladimir J. van der Laan)
Pull request description:
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. As such, this is an alternative to that PR.
Tree-SHA512: 47fcc1ed2ff3d8fed4b7441e4939f29cc99b57b7a035673c3b55a124a2e49c8a904637a6ff700dd13a184be8c0255707d74781f8e626314916418954e2467e03
Diffstat (limited to 'src/httpserver.cpp')
0 files changed, 0 insertions, 0 deletions