Skip to content

Commit

Permalink
release notes and version
Browse files Browse the repository at this point in the history
  • Loading branch information
hrissan committed Oct 22, 2020
1 parent af673ce commit dfac4e0
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
18 changes: 18 additions & 0 deletions ReleaseNotes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
## Release Notes

### 0.9.0

*Low level*
- Experimental TLS code (not for use in a wild yet)
- Simple crab::optional for using older C++ standard
- Random is adapted to std containers

*HTTP*
- Streaming of HTTP bodies (both upload and download)
- New HTTP URI parser by AK

*Bugs fixed*
- WebSockets now support control frames between message chunks

*Incompatible changes*
- New callbacks design for WebSockets and postponing normal HTTP responses
- Stricter integer parser might break existing products

### 0.8.0

*Low level*
Expand Down
4 changes: 2 additions & 2 deletions include/crab/crab_version.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@
#define CRAB_INLINE inline
#endif

#define CRAB_BRANCH " (branch dev)"
#define CRAB_BRANCH ""
// No tricks, we wish to be easily includable in header-only mode

#define CRAB_VERSION "0.8.1"
#define CRAB_VERSION "0.9.0"
// Not in cmake, we wish to be easily includable in header-only mode
#if CRAB_TLS
#define CRAB_TLS_STRING "with TLS"
Expand Down
2 changes: 1 addition & 1 deletion include/crab/http/request_parser.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ CRAB_INLINE BodyParser::BodyParser(details::optional<uint64_t> content_length, b
// Rules about which requests and responses should and should not have body
// are complicated.
remaining_bytes = *content_length;
if (remaining_bytes < 65536) // TODO - constant
if (remaining_bytes < 4096) // TODO - constant
body.get_buffer().reserve(static_cast<size_t>(remaining_bytes));
}
state = (remaining_bytes == 0) ? GOOD : CONTENT_LENGTH_BODY;
Expand Down

0 comments on commit dfac4e0

Please sign in to comment.