diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-07-12 20:49:46 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-07-12 21:47:29 +0000 |
commit | 4244fd63ef360a1b5a201d82e323c54842f0db55 (patch) | |
tree | b84d070ef14fab2cffc0ce257e01d98352c749ee /cmogstored.h | |
parent | 86c7628b01130559c53dffe1d799f2031a020918 (diff) | |
download | cmogstored-4244fd63ef360a1b5a201d82e323c54842f0db55.tar.gz |
We don't want drop in-flight pipelined requests when disabling persistent connections. Disabling persistent connections will always be potentially racy, but hopefully this makes the race small enough that lower-level latencies are the only thing which affect that.
Diffstat (limited to 'cmogstored.h')
-rw-r--r-- | cmogstored.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cmogstored.h b/cmogstored.h index 5b4493b..2dffbb2 100644 --- a/cmogstored.h +++ b/cmogstored.h @@ -197,15 +197,16 @@ enum mog_chunk_state { struct mog_http { int cs; struct { - /* only needs 4 bits, but we use 8 for alignment */ - enum mog_http_method http_method:8; + enum mog_http_method http_method:4; unsigned persistent:1; + unsigned persist_client_at_start:1; unsigned chunked:1; unsigned has_md5:1; unsigned has_content_range:1; /* for PUT */ unsigned has_range:1; /* for GET */ unsigned skip_rbuf_defer:1; enum mog_chunk_state chunk_state:2; + unsigned unused_padding:3; uint8_t path_tip; uint8_t path_end; uint16_t line_end; |