Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26796] Windows: TCP connection not closed at app exit

GitHub Issuen/a
TypeBug
PriorityMedium
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 8.0.0
Fix Version/sn/a
ComponentsWindows
Labelsn/a
ReporterKota Iguchi
AssigneeKota Iguchi
Created2019-02-05T01:08:37.000+0000
Updated2019-04-27T00:36:09.000+0000

Description

Latest error message on LiveView issue with 8.0.0 TIMOB-25072 shows that we might need to gracefully close TCP connection just before application exit - sample code: https://gist.github.com/infosia/a4d617b6678a5efef445eb7301b8b4c2#file-liveview-diff-L54 I think this has never happened on iOS/Android/WindowsPhone because application lifetime is totally controlled by each frameworks...but it seems things are different for Windows Store app because user can explicitly kill the app manually by pressing Window's [x] button. I don't know why this has never happened on previous versions but maybe we need to handle this natively, like explicitly closes all open-connection gracefully just before application exit. *Steps to reproduce* appc run -p windows -l trace --target ws-local --liveview -l trace and then exit the app by pressing [x] button on the title bar *Result*
[INFO]  Disconnected from app
-- End application log -------------------------------------------------------

2019-01-31T07:12:35.322Z | ERROR  | An uncaught exception was thrown!
read ECONNRESET
2019-01-31T07:12:35.322Z | ERROR  | read ECONNRESET
*Expexted* read ECONNRESET error message does not happen

Comments

No comments

JSON Source