Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
HTTP proxy support #2112
The replicator almost certainly doesn't work with HTTP proxies -- it does use NSURLSession, but via the low-level StreamSessionTask, which is just a raw TCP connection. So the system has no knowledge that we're making an HTTP connection.
In that case, we have to use the CFProxy API to find the current proxy, and talk HTTP proxy talk to it, which means putting the full URL in the first line, and using different headers and status codes for auth.
CBL .ios should use system proxy if configured
CBL .ios is not using system proxy.
Steps To Reproduce
Test will pass if I flush the iptables rule on the SG node.
If it's forwarding to a specific host, it doesn't sound like it's configured as a regular HTTP proxy, the kind that's used on end-user networks. Those allow connections to multiple hosts by taking the full URL on the initial HTTP request line.
WebSockets and proxy servers: https://www.infoq.com/articles/Web-Sockets-Proxy-Servers
added a commit
Mar 22, 2018
The replication unit tests now support setting environment variables