Skip to content

Commit bec52dd

Browse files
authored
Merge pull request #11 from basiliscos/issue-4
Issue #4 : remove unneeded commit on tx_buff
2 parents a628464 + c902e57 commit bec52dd

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ Boost::ASIO low-level redis client (connector)
1717

1818
## Changelog
1919

20+
### 0.04
21+
- [bugfix] removed unneeded `tx_buff.commit()` on `async_write` which corrupted buffer
22+
2023
### 0.03
2124
- improved protocol parser (no memory allocations during input stream validity check)
2225
- more detailed information in `protocol_error_t`

include/bredis/impl/connection.ipp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ Connection<NextLayer>::async_write(DynamicBuffer &tx_buff,
3333
std::ostream os(&tx_buff);
3434
auto string = boost::apply_visitor(command_serializer_visitor(), command);
3535
os.write(string.c_str(), string.size());
36-
tx_buff.commit(string.size());
3736

3837
real_handler_t handler(std::forward<WriteCallback>(write_callback));
3938
return async_write(stream_, tx_buff, handler);

0 commit comments

Comments
 (0)