Details
Description
The Get response looks like:
+-------------------------------+
|
| 24 byte header |
|
+-------------------------------+
|
| 4 byte flags |
|
+-------------------------------+
|
| n bytes key (if requested) |
|
+-------------------------------+
|
| n byte value |
|
+-------------------------------+
|
And is built up by using addIov. Each IOV end up in one or more TLS frames (with all of the disadvantages: extra CPU usage, extra network overhead etc). As an optimization we could copy all of the data into another buffer if the payload is small and end up with a single TLS frame on the wire.
Attachments
For Gerrit Dashboard: MB-36027 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
114863,4 | MB-36027: Use a single buffer for GET reponse [SSL] | vulcan | kv_engine | Status: ABANDONED | 0 | +1 |
114930,3 | MB-36027: Use a single buffer for GET reponse [SSL] | master | kv_engine | Status: MERGED | +2 | +1 |