I have clients (happens to be on Android) using SSL and keepalive, desiring 
to make multiple requests on the same connection. I am not sure why this is 
overloaded as such, but, in between the first and second HTTP requests, the 
client is sending an HTTP CONNECT message:

CONNECT app.mydomain.com:443 HTTP/1.1
Host: app.mydomain.com
User-Agent: Dalvik/1.6.0 (Linux; U; Android 4.1.1; Z992 Build/JRO03C)
Proxy-Connection: Keep-Alive

I gather that I need to handle this in Node by providing an https 
on('connect') handler.  But, I'm not sure what to put in this handler, to 
make the client happy and let the connection continue to operate.  It's not 
really requesting a proxy to another server, it's just keeping alive the 
current connection, as far as I can tell.

I tried socket.write("HTTP/1.1 200 OK\r\n\r\n"), but, Node doesn't seem to 
consider the request handled after this, and doesn't parse any more 
incoming traffic. There is no "response" object sent to the on('connect') 
callback, so I can't call response.end().  

Can anyone pelase advise? Get HTTPS and Keepalive to work well is going to 
be critical for mobile performance.

By the way this is Node 0.10.30.





-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/6d50e0b1-3899-48bb-ab09-928163c45e63%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to