newtmgr - allow blehostd 2 seconds for accept tmo.

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/d24f0401
Tree: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newtmgr/tree/d24f0401
Diff: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newtmgr/diff/d24f0401

Branch: refs/heads/master
Commit: d24f04015b97cc9ed36f89b8e567c4a8f2fa262c
Parents: f58e088
Author: Christopher Collins <[email protected]>
Authored: Mon Mar 27 11:52:48 2017 -0700
Committer: Christopher Collins <[email protected]>
Committed: Tue Mar 28 15:38:36 2017 -0700

----------------------------------------------------------------------
 newtmgr/config/ble_config.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newtmgr/blob/d24f0401/newtmgr/config/ble_config.go
----------------------------------------------------------------------
diff --git a/newtmgr/config/ble_config.go b/newtmgr/config/ble_config.go
index aeb80c7..dbdf3dc 100644
--- a/newtmgr/config/ble_config.go
+++ b/newtmgr/config/ble_config.go
@@ -116,7 +116,7 @@ func BuildBleXport(bc *BleConfig) (*nmble.BleXport, error) {
        params.SockPath = "/tmp/blehostd-uds"
        params.BlehostdPath = bc.BlehostdPath
        params.DevPath = bc.ControllerPath
-       params.BlehostdAcceptTimeout = time.Second / 10
+       params.BlehostdAcceptTimeout = 2 * time.Second
        params.BlehostdRestart = false
 
        bx, err := nmble.NewBleXport(params)

Reply via email to