You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2019/07/29 18:04:21 UTC

[GitHub] [mynewt-newtmgr] ccollins476ad opened a new pull request #134: nmxact: Don't require serial session to "unlisten"

ccollins476ad opened a new pull request #134: nmxact: Don't require serial session to "unlisten"
URL: https://github.com/apache/mynewt-newtmgr/pull/134
 
 
   There is a max of one active session per serial transport.  This limitation is necessary because there is no demuxing protocol.  Whatever data is received over serial is just forwarded to the active session.
   
   Before this commit, nmxact required the active sesion to unregister itself before any session could be registered again, even if the two sessions are the same.
   
   This commit relaxes this restriction.  Now, it is OK to register the same session multiple times without unregistering in between.
   
   This change is necessary due to the recent change to the session API.  Now, listening and transmitting are separate operations, so it is not trivial to arrange for a session to be unregistered after use.  In practice, there is never more than one serial session anyway.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services