nmxact - blehostd rsp timeout 1s --> 10s.

Test to see if this prevents the response timeout.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newtmgr/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newtmgr/commit/564c088a
Tree: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newtmgr/tree/564c088a
Diff: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newtmgr/diff/564c088a

Branch: refs/heads/master
Commit: 564c088abb16f8c7539740ab3015c66989c278ed
Parents: 83de444
Author: Christopher Collins <ccoll...@apache.org>
Authored: Mon May 1 14:19:48 2017 -0700
Committer: Christopher Collins <ccoll...@apache.org>
Committed: Mon May 1 14:55:02 2017 -0700

----------------------------------------------------------------------
 nmxact/nmble/ble_xport.go | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newtmgr/blob/564c088a/nmxact/nmble/ble_xport.go
----------------------------------------------------------------------
diff --git a/nmxact/nmble/ble_xport.go b/nmxact/nmble/ble_xport.go
index 4f53255..e7a495f 100644
--- a/nmxact/nmble/ble_xport.go
+++ b/nmxact/nmble/ble_xport.go
@@ -39,7 +39,7 @@ type XportCfg struct {
        BlehostdAcceptTimeout time.Duration
 
        // How long to wait for a JSON response from the blehostd process.
-       // Default: 1 second.
+       // Default: 10 seconds.
        BlehostdRspTimeout time.Duration
 
        // Whether to restart the transport if it goes down or fails to start in
@@ -57,14 +57,14 @@ type XportCfg struct {
        RandAddr *BleAddr
 
        // The value to specify during ATT MTU exchange.
-       // Default: 512.
+       // Default: 264.
        PreferredMtu uint16
 }
 
 func NewXportCfg() XportCfg {
        return XportCfg{
                BlehostdAcceptTimeout: time.Second,
-               BlehostdRspTimeout:    time.Second,
+               BlehostdRspTimeout:    10 * time.Second,
                Restart:               true,
                SyncTimeout:           10 * time.Second,
                PreferredMtu:          264,

Reply via email to