search for: 694c282

Displaying 2 results from an estimated 2 matches for "694c282".

Did you mean: 641282
2019 Jun 14
0
[libnbd PATCH 6/7] states: Give up on oversized reply length
...{ + set_error (0, "handshake: invalid option reply length"); + return -1; + } + else if (len <= maxpayload) h->rbuf = &h->sbuf.or.payload; else h->rbuf = NULL; diff --git a/generator/states-reply-structured.c b/generator/states-reply-structured.c index 694c282..06eedb4 100644 --- a/generator/states-reply-structured.c +++ b/generator/states-reply-structured.c @@ -68,6 +68,19 @@ return -1; } + /* Reject a server that replies with too much information, but don't + * reject a single structured reply to NBD_CMD_READ on the largest + * size w...
2019 Jun 14
10
[libnbd PATCH 0/7] state machine refactoring
I'm still playing with ideas on how to split rstate from wstate (so that we can send a request without waiting for POLLIN to complete a pending reply), but this is some preliminary refactoring I found useful. I also fixed a couple of bugs while in the area (already pushed). There's a question of whether we want nbd_handle to be nearly 5k, or if we should instead keep it small and add one