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.