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
2b69c86d
Commit
2b69c86d
authored
Jul 05, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
a8f583cc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
go/zodb/storage/zeo/zrpc.go
go/zodb/storage/zeo/zrpc.go
+9
-1
No files found.
go/zodb/storage/zeo/zrpc.go
View file @
2b69c86d
...
@@ -237,7 +237,14 @@ func pktDecodeZ(pkb *pktBuf) (msg, error) {
...
@@ -237,7 +237,14 @@ func pktDecodeZ(pkb *pktBuf) (msg, error) {
flags
,
ok
:=
pickletools
.
Xint64
(
tpkt
[
1
])
flags
,
ok
:=
pickletools
.
Xint64
(
tpkt
[
1
])
if
!
ok
{
if
!
ok
{
return
m
,
derrf
(
"flags: got %T; expected int"
,
tpkt
[
1
])
bflags
,
ok
:=
tpkt
[
1
]
.
(
bool
)
if
!
ok
{
return
m
,
derrf
(
"flags: got %T; expected int|bool"
,
tpkt
[
1
])
}
if
bflags
{
flags
=
1
}
// else: flags is already = 0
}
}
// XXX check flags are in range?
// XXX check flags are in range?
m
.
flags
=
msgFlags
(
flags
)
m
.
flags
=
msgFlags
(
flags
)
...
@@ -570,6 +577,7 @@ func handshake(ctx context.Context, conn net.Conn) (_ *zLink, err error) {
...
@@ -570,6 +577,7 @@ func handshake(ctx context.Context, conn net.Conn) (_ *zLink, err error) {
}
}
zl
.
ver
=
ver
zl
.
ver
=
ver
zl
.
encoding
=
'Z'
// XXX hardcoded
close
(
hok
)
close
(
hok
)
return
nil
return
nil
})
})
...
...
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