Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remote execution will hang if we print lines too long #102

Open
nkeywal opened this issue Jan 21, 2019 · 0 comments
Open

remote execution will hang if we print lines too long #102

nkeywal opened this issue Jan 21, 2019 · 0 comments

Comments

@nkeywal
Copy link
Contributor

nkeywal commented Jan 21, 2019

The remote execution will hang if we print lines too long. It works if they are shorter eg. with \n)
this can be reproduced with the following patch in the simul package

diff --git a/processing.go b/processing.go
index ea7de83..514059b 100644
--- a/processing.go
+++ b/processing.go
@@ -7,6 +7,7 @@ package handel
 import (
        "errors"
        "fmt"
+       "os"
        "sync"
        "time"
 )
@@ -315,10 +316,11 @@ func (f *evaluatorProcessing) processStep() bool {
 func (f *evaluatorProcessing) verifyAndPublish(sp *incomingSig) {
        startTime := time.Now()
        err := (error)(nil)
-       if f.sigSleepTime <= 0 {
+       if f.sigSleepTime <= 0 && false {
                err = verifySignature(sp, f.msg, f.part, f.cons)
        } else {
-               time.Sleep(time.Duration(f.sigSleepTime * 1000000))
+               //time.Sleep(time.Duration(f.sigSleepTime * 1000000))
+               os.Stdout.WriteString("*********************************************************************************************************************************************************************************************************")
        }
        endTime := time.Now()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant