Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove first oNCP negotiation request (only second is necessary)
The current oNCP (Juniper) protocol support issues two separate oNCP negotiation requests. 1) POST /dana/js?prot=1&svc=1 HTTP/1.1 <ignore response body> <teardown and restart TLS connection> 2) POST /dana/js?prot=1&svc=4 HTTP/1.1 <continue using open TLS connection for oNCP tunnel> The first of these two requests appears to be totally unnecessary, based on testing with two different Juniper gateways, one of which returns "NCP-Version: 2" and one which returns "NCP-Version: 3" in response to the oNCP negotiation requests. Removing the first request saves an additional TLS negotiation (2-3 roundtrips with TLS 1.0) and allows the connection to start faster.
- Loading branch information