[TIMOB-3745] Ti.Stream needs to call TiStreamProxy wrappers, not impls directly
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Trivial |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2017-06-05T22:14:43.000+0000 |
Affected Version/s | Release 1.7.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | stream, tbs-1.8.0 |
Reporter | Stephen Tramer |
Assignee | Ingo Muschenetz |
Created | 2011-04-26T13:44:39.000+0000 |
Updated | 2017-06-05T22:14:43.000+0000 |
Description
Ti.Stream methods need to call wrappers for read/write (although not writeStream/pump - although that should be changed too). Right now they only call the internal implementations, due to wackiness that was caused by socket streams; instead, we should treat every call as synchronous. This will involve some finessing of TCP sockets as well, to ensure that when an asynch operation is "blocking", there are broadcasts on error.
This will also substantially reduce the complexity of some current code.
Not enough time to handle testing, etc. before freeze; putting into 1.8.0.
If it ain't broke we don't have to fix it (right away).