Commit 489e4f2d authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 9d575887
...@@ -1502,7 +1502,7 @@ func (wlink *WatchLink) _serveRX() (err error) { ...@@ -1502,7 +1502,7 @@ func (wlink *WatchLink) _serveRX() (err error) {
return err return err
} }
fmt.Printf("S: watch: rx: %q\n", l) fmt.Printf("S: wlink %d: rx: %q\n", wlink.id, l)
stream, msg, err := parseWatchFrame(l) stream, msg, err := parseWatchFrame(l)
if err != nil { if err != nil {
...@@ -1605,7 +1605,7 @@ func (wlink *WatchLink) send(ctx context.Context, stream uint64, msg string) err ...@@ -1605,7 +1605,7 @@ func (wlink *WatchLink) send(ctx context.Context, stream uint64, msg string) err
// XXX timeout write on ctx cancel // XXX timeout write on ctx cancel
pkt := []byte(fmt.Sprintf("%d %s\n", stream, msg)) pkt := []byte(fmt.Sprintf("%d %s\n", stream, msg))
fmt.Printf("S: watch: tx: %q\n", pkt) fmt.Printf("S: wlink %d: tx: %q\n", wlink.id, pkt)
_, err := wlink.sk.Write(pkt) _, err := wlink.sk.Write(pkt)
if err != nil { if err != nil {
return err return err
......
...@@ -415,7 +415,7 @@ class tWatch: ...@@ -415,7 +415,7 @@ class tWatch:
defer(t._serveDone.close) defer(t._serveDone.close)
while 1: while 1:
l = t.wrx.readline() l = t.wrx.readline()
print('C: watch: rx: %r' % l) print('C: watch : rx: %r' % l)
if len(l) == 0: if len(l) == 0:
break # closed break # closed
...@@ -443,7 +443,7 @@ class tWatch: ...@@ -443,7 +443,7 @@ class tWatch:
assert '\n' not in msg assert '\n' not in msg
with t._txmu: with t._txmu:
pkt = b"%d %s\n" % (stream, msg) pkt = b"%d %s\n" % (stream, msg)
print('C: watch: tx: %r' % pkt) print('C: watch : tx: %r' % pkt)
t.wtx.write(pkt) t.wtx.write(pkt)
t.wtx.flush() t.wtx.flush()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment