Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2575] iOS: HTTPClient enableKeepAlive property true doesn't work

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionFixed
Resolution Date2013-06-08T08:53:46.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsapi, ios
ReporterStefan Hes
AssigneeDavide Cassenti
Created2013-03-21T11:18:10.000+0000
Updated2016-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

FileDateSize
fiddler.PNG2013-03-21T11:18:10.000+000061369
httpclient code.txt2013-03-21T11:18:10.000+0000316

Comments

  1. Martin Guillon 2013-05-27

    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
  2. Shak Hossain 2013-06-07

    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.
  3. Martin Guillon 2013-06-08

    Personally I do think you can close this one

JSON Source