[PATCH 0/2] make Juniper connection start faster

2018-08-02 Thread Daniel Lenski
I have to access one Juniper gateway which has terribly high latency and drops my connection frequently. The authentication process in particular is agonizingly slow, and I realized that this was largely because the current implementation uses "Connection: close" on all HTTP requests. After some

[PATCH 2/2] Remove first oNCP negotiation request (only second is necessary)

2018-08-02 Thread Daniel Lenski
The current oNCP (Juniper) protocol support issues two separate oNCP negotiation requests. 1) POST /dana/js?prot=1=1 HTTP/1.1 2) POST /dana/js?prot=1=4 HTTP/1.1 The first of these two requests appears to be totally unnecessary, based on testing with two different Juniper gateways,