tatsuhiro-t / spdylay

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

i create 3 work threads ,but if i send 10url with same host ,shrpx create only 1 connection with backend,why ? #141

Open megarzzy opened 8 years ago

megarzzy commented 8 years ago

i create 3 work threads ,but if i send 10url with same host ,shrpx create only 1 connection with backend,why can not create 3 connections with backend ? thx!

tatsuhiro-t commented 8 years ago

Are you using SPDY backend, and does client use SPDY to access shrpx? Then it is normal. shrpx creates one SPDY connection per worker, and all requests in one SPDY frontend connection will go into the same backend SPDY connection.

megarzzy commented 8 years ago

shrpx -p -b xxxx,8888 -L INFO; backend using spdy,but frontend using http1.1 ,maybe because of the persistent connection ?