Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
84541c67
Commit
84541c67
authored
Jan 01, 2014
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
packer/rpc: get rid of trace level
parent
e37e690e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
packer/rpc/muxconn.go
packer/rpc/muxconn.go
+4
-10
No files found.
packer/rpc/muxconn.go
View file @
84541c67
...
...
@@ -100,7 +100,7 @@ func (m *MuxConn) Close() error {
// Accept accepts a multiplexed connection with the given ID. This
// will block until a request is made to connect.
func
(
m
*
MuxConn
)
Accept
(
id
uint32
)
(
io
.
ReadWriteCloser
,
error
)
{
log
.
Printf
(
"[TRACE] %p: Accept on stream ID: %d"
,
m
,
id
)
//
log.Printf("[TRACE] %p: Accept on stream ID: %d", m, id)
// Get the stream. It is okay if it is already in the list of streams
// because we may have prematurely received a syn for it.
...
...
@@ -146,7 +146,7 @@ func (m *MuxConn) Accept(id uint32) (io.ReadWriteCloser, error) {
// Dial opens a connection to the remote end using the given stream ID.
// An Accept on the remote end will only work with if the IDs match.
func
(
m
*
MuxConn
)
Dial
(
id
uint32
)
(
io
.
ReadWriteCloser
,
error
)
{
log
.
Printf
(
"[TRACE] %p: Dial on stream ID: %d"
,
m
,
id
)
//
log.Printf("[TRACE] %p: Dial on stream ID: %d", m, id)
m
.
muDial
.
Lock
()
...
...
@@ -293,9 +293,6 @@ func (m *MuxConn) loop() {
return
}
else
{
n
+=
n2
if
n
<
int
(
length
)
{
log
.
Printf
(
"[TRACE] %p: Stream %d read %d/%d bytes"
,
m
,
id
,
n
,
length
)
}
}
}
...
...
@@ -330,7 +327,7 @@ func (m *MuxConn) loop() {
continue
}
log
.
Printf
(
"[TRACE] %p: Stream %d (%s) received packet %d"
,
m
,
id
,
from
,
packetType
)
//
log.Printf("[TRACE] %p: Stream %d (%s) received packet %d", m, id, from, packetType)
switch
packetType
{
case
muxPacketSyn
:
// If the stream is nil, this is the only case where we'll
...
...
@@ -450,9 +447,6 @@ func (m *MuxConn) write(from muxPacketFrom, id uint32, dataType muxPacketType, p
var
n2
int
n2
,
err
=
m
.
rwc
.
Write
(
p
)
n
+=
n2
if
n
<
len
(
p
)
{
log
.
Printf
(
"[TRACE] %p: Stream %d (%s) write %d/%d bytes"
,
m
,
id
,
from
,
n
,
len
(
p
))
}
if
err
!=
nil
{
log
.
Printf
(
"[ERR] %p: Stream %d (%s) write error: %s"
,
m
,
id
,
from
,
err
)
break
...
...
@@ -568,7 +562,7 @@ func (s *Stream) closeWriter() {
}
func
(
s
*
Stream
)
setState
(
state
streamState
)
{
log
.
Printf
(
"[TRACE] %p: Stream %d (%s) went to state %d"
,
s
.
mux
,
s
.
id
,
s
.
from
,
state
)
//
log.Printf("[TRACE] %p: Stream %d (%s) went to state %d", s.mux, s.id, s.from, state)
s
.
state
=
state
s
.
stateUpdated
=
time
.
Now
()
.
UTC
()
for
ch
,
_
:=
range
s
.
stateChange
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment