Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
neoppod
Commits
854d865f
Commit
854d865f
authored
Mar 15, 2024
by
Levin Zimmermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! X on msgpack support
This fixes a stucked client: now the handshake packet is correctly proceeded.
parent
f485609c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
go/neo/neonet/newlink.go
go/neo/neonet/newlink.go
+2
-6
No files found.
go/neo/neonet/newlink.go
View file @
854d865f
...
...
@@ -276,17 +276,13 @@ func rxHello(errctx string, rx *xbufReader) (enc proto.Encoding, version uint32,
if
err
!=
nil
{
return
0
,
0
,
err
}
if
!
bytes
.
Equal
(
b
[
4
:
],
[]
byte
{
'O'
,
0
})
{
if
!
bytes
.
Equal
(
b
[
4
:
5
],
[]
byte
{
'O'
})
{
badMagic
=
true
break
}
peerEnc
=
'M'
rxM
:=
msgp
.
Reader
{
R
:
rx
.
Reader
}
peerVer
,
err
=
rxM
.
ReadUint32
()
if
err
!=
nil
{
return
0
,
0
,
fmt
.
Errorf
(
"M: recv peer version: %s"
,
err
)
// XXX + "read magic" ctx
}
peerVer
=
uint32
(
b
[
5
])
default
:
badMagic
=
true
...
...
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