Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-184] Android: HTTPClient blocks on read after isStreaming is false

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:52:16.000+0000
Affected Version/sn/a
Fix Version/sRelease 0.8.0
ComponentsAndroid
Labelsandroid, defect
ReporterDon Thorp
AssigneeDon Thorp
Created2011-04-15T02:25:00.000+0000
Updated2011-04-17T01:52:16.000+0000

Description

A server that doesn't close its connection after the data is transmitted and has an undetermined contentLength, causes the client to block on read of the InputStream.

Comments

  1. Don Thorp 2011-04-15

    (from [965380f4b17c456baa38b155f884cc99aefd8e54]) [#184 state:resolved] use the isStreaming property to determine whether to go back into the read loop or break; Need for contentLength -1 and server not closing connection http://github.com/appcelerator/titanium_mobile/commit/965380f4b17c456baa38b155f884cc99aefd8e54"> http://github.com/appcelerator/titanium_mobile/commit/965380f4b17c4...

JSON Source