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
3a1908bb
Commit
3a1908bb
authored
Jan 01, 2014
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
packer/rpc: make things loud
parent
21b69085
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
packer/rpc/muxconn.go
packer/rpc/muxconn.go
+3
-3
No files found.
packer/rpc/muxconn.go
View file @
3a1908bb
...
...
@@ -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.
...
...
@@ -322,7 +322,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
...
...
@@ -546,7 +546,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