Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-26796

Windows: TCP connection not closed at app exit

    Details

    • Type: Bug
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: Release 8.0.0
    • Fix Version/s: None
    • Component/s: Windows
    • Labels:
      None
    • Story Points:
      8
    • Sprint:
      2019 Sprint 3, 2019 Sprint 5, 2019 Sprint 7, 2019 Sprint 8, 2019 Sprint 9

      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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kiguchi Kota Iguchi (Inactive)
                Reporter:
                kiguchi Kota Iguchi (Inactive)
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-21012
                    Sync status:
                    PENDING
                    Last received:
                    Last sent:

                    Git Integration