[AC-2575] iOS: HTTPClient enableKeepAlive property true doesn't work
GitHub Issue | n/a |
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-06-08T08:53:46.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | api, ios |
Reporter | Stefan Hes |
Assignee | Davide Cassenti |
Created | 2013-03-21T11:18:10.000+0000 |
Updated | 2016-03-08T07:41:39.000+0000 |
Description
I use the HTTPClient to setup a persistent connection (enableKeepAlive property = true and reguest header for connection set to 'keep-alive').
With a sniffer I see that the request header 'Connection' is still 'çlose'.
I tried to set the enableKeepAlive at creation time of the htppclient and also with the setEnableKeepAlive method. Both without succes.
In the attachment you can find the code, as well as a printsreen of fiddler (the http sniffer tool)
Attachments
It can't work with the current implementation and use of ASIHTTPRequest That's why i personally created a new PersistentHTTPClient i had a pull request for that https://github.com/appcelerator/titanium_mobile/pull/2844 but it was never really followed
Hi Martin, Looks like you are in good contact with Blain Hammon of AppC to process this pull request. Is this JIRA needed any further? If not, I would like to close it. Regards, Shak H.
Personally I do think you can close this one