tatsuhiro-t / spdylay

The experimental SPDY protocol version 2, 3 and 3.1 implementation in C
http://tatsuhiro-t.github.io/spdylay/
MIT License
604 stars 102 forks source link

could you explain what does "--backend-spdy-window-bits " and "--backend-spdy-connection-window-bits"? #140

Closed megarzzy closed 8 years ago

megarzzy commented 8 years ago

--backend-spdy-window-bits= Sets the per-stream initial window size of SPDY backend connection to 2. Default: 16 --backend-spdy-connection-window-bits= Sets the per-connection window size of SPDY backend connection to 2. Default: 16 how to tunnel the performance ? please

tatsuhiro-t commented 8 years ago

This is the flow control window size that backend SPDY server sends response to shrpx without acknowledgement from shrpx (more specifically, WINDOW_UPDATE). SPDY/3.1 has 2 layer of flow control window: connection and stream. The connection is window size across all active streams, and it has larger effect than stream level window size. If you increase this value, it may increase memory usage of shrpx, since that amount of data is cached in memory. So run the test and tune these options comparing throughput and memory usage.