Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-850] HTTPClient keep-alive connections

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:54:26.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.4.0
ComponentsiOS
Labelschunked, connection, httpclient, keep-alive, transfer-encoding
ReporterCB
AssigneeReggie Seagraves
Created2011-04-15T02:37:48.000+0000
Updated2014-07-01T18:13:40.000+0000

Description

hi,

Currently there is no way to create a keep-alive connections using Titanium.Network.HTTPClient

This is a MUST in cases where the Server response is chunked (Transfer-Encoding: chunked)

This is very urgent - for cases such as returning large JSON Strings etc.

Also - using keep alive-alive connections can boost performance since the OS can reuse the connection.

Comments

  1. CB 2011-04-15

    should I assign this to someone? Not sure - I hope I get lucky :)

    This bug is a real show stopper.

    Thanks,

    CB.

  2. Jeff Haynie 2011-04-15

    looks like this is probably fixed in the latest version of ASIHTTPRequest. We'll look into upgrading for next release.

  3. CB 2011-04-15

    I really hope that it will be possible to push this into the v1.3 milestone - this bug is killing my project :(

  4. Jeff Haynie 2011-04-15

    it definitely won't make 1.3 since that's probably going to come out of final testing today (after almost a week of testing)

  5. Jeff Haynie 2011-04-15

    i can't tell from your lighthouse profile if you're a professional subscriber. if you are, make sure you have a helpdesk ticket with the appropriate priority set.

  6. CB 2011-04-15

    I'm not - my project is in bootstrap mode and we need to be able to deliver the v1 of our product before we can commit to a pro account. I noticed that v1.4 is scheduled for June - thats pretty far.. Oh well...

  7. Damien Elmes 2011-04-15

    If this'll allow me to download multiple files from one server without a series of new connections, and it's not too much work, I'd love to see this in 1.4 too. Have Appcelerator made any local changes to the current ASIHTTPClient sources?

  8. Jeff Haynie 2011-04-15

    I've updated to the latest ASIHttpClient which should support this.

  9. Damien Elmes 2011-04-15

    I turned on keep-alive debugging and confirmed that keep alive is being used on subsequent connections now. Unfortunately in my case it didn't make a noticeable difference to speed of my downloads, so I'll need to look at downloading concurrently instead. But the upgraded library fixed the other problem I was having, so thanks for that.

  10. Ranando King 2014-07-01

    This issue needs to be reopened. It exists in 3.2.3.

JSON Source