Closed thehaven closed 10 years ago
I don't know much about zfs, but it is just a file system, and not likely to affect networking stack. If libevent polls file system changes on zfs using epoll, then it may fail, but we apparently don't use file change event.
The strace log looks normal to me. The "network error: success" is confusing, but it usually means that the underlying socket was closed gracefully.
With your setup, which server does the spdycat perform SSL/TLS handshake? HAproxy or shrpx?
If HAproxy forwards decrypted stream to shrpx, make sure that shrpx is configured with --frontend-spdy-no-tls
and SPDY version is also specified with --frontend-spdy-proto
.
It would be advisable to check again the configuration, because people are likely missing to specify correct config file path, etc.
Thanks @tatsuhiro-t,
It was indeed the configuration parameters I was passing. I'd accidentally over-ridden my old settings on the new machine and switched from:
SHRPX_CONF="-D -k --add-x-forwarded-for --no-via --frontend-spdy-no-tls --honor-cipher-order --conf /etc/shrpx.conf"
To: SHRPX_CONF="-D -k --add-x-forwarded-for --conf /etc/shrpx.conf"
Fixing that fixed the issue.
I really should have spotted that. Thanks for pointing me in the right direction.
Hi,
I have both a working setup and a broken setup on two separate machines and using identical configs and identical versions of spdylay (1.1.0). The working setup is Gentoo Unstable, the non-working is a new machine build on Gentoo stable so there are library differences. The primary difference between the two systems however is that the "stable" build is using ZFS (zfsonlinux) as its primary file system.
My setup sends packets requesting spdy/3 from HAProxy -> shrpx -> Nginx.
On the non-working setup I can see that requests are hitting the shrpx server. However no traffic is forwarded on. Here are some logs:
Generating the request via spdycat:
Monitoring the output from shrpx:
"Network error: Success" is confusing me a bit - does that mean there is a network error?
Monitoring the outgoing port on shrpx via tcpdump I can confirm that no traffic is sent.
I've also tried running shrpx on this machine using both master and v1.2.1 with no success. Given ZFS's as the primary difference between the two machines I'm wondering whether that is the contributing factor here. Here's a snippet from strace that suggests an epoll issue perhaps? (out of my depth a bit here unfortunately):
I'm not really sure what to try next and would appreciate any assistance.
Many thanks.