Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
p2p
go-mplex
Commits
f940a15b
Unverified
Commit
f940a15b
authored
Dec 06, 2019
by
Steven Allen
Committed by
GitHub
Dec 06, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #63 from libp2p/feat/enable-write-coalescing
Re-enable write coalescing
parents
62ac1f66
414db618
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
multiplex.go
multiplex.go
+1
-5
No files found.
multiplex.go
View file @
f940a15b
...
...
@@ -192,11 +192,7 @@ func (mp *Multiplex) handleOutgoing() {
return
case
data
:=
<-
mp
.
writeCh
:
// FIXME: https://github.com/libp2p/go-libp2p/issues/644
// write coalescing disabled until this can be fixed.
//err := mp.writeMsg(data)
err
:=
mp
.
doWriteMsg
(
data
)
pool
.
Put
(
data
)
err
:=
mp
.
writeMsg
(
data
)
if
err
!=
nil
{
// the connection is closed by this time
log
.
Warningf
(
"error writing data: %s"
,
err
.
Error
())
...
...
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