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
0d1206b9
Commit
0d1206b9
authored
Oct 09, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
8eac771c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
go/neo/connection.go
go/neo/connection.go
+3
-4
go/neo/t/neotest
go/neo/t/neotest
+1
-0
No files found.
go/neo/connection.go
View file @
0d1206b9
...
...
@@ -112,7 +112,6 @@ type Conn struct {
// XXX ^^^ split to different cache lines?
rxerrOnce
sync
.
Once
// rx error is reported only once - then it is link down or closed XXX !light?
// errMsg *Error // error message for peer if rx is down XXX try to do without it
// there are two modes a Conn could be used:
// - full mode - where full Conn functionality is working, and
...
...
@@ -202,7 +201,7 @@ func newNodeLink(conn net.Conn, role LinkRole) *NodeLink {
peerLink
:
conn
,
connTab
:
map
[
uint32
]
*
Conn
{},
nextConnId
:
nextConnId
,
acceptq
:
make
(
chan
*
Conn
),
// XXX +buf
acceptq
:
make
(
chan
*
Conn
),
// XXX +buf
?
txq
:
make
(
chan
txReq
),
rxghandoff
:
make
(
chan
struct
{}),
// axdown: make(chan struct{}),
...
...
@@ -220,7 +219,7 @@ func newNodeLink(conn net.Conn, role LinkRole) *NodeLink {
// XXX make it per-link?
var
connPool
=
sync
.
Pool
{
New
:
func
()
interface
{}
{
return
&
Conn
{
rxq
:
make
(
chan
*
PktBuf
,
1
),
// NOTE non-blocking - see serveRecv XXX +buf
rxq
:
make
(
chan
*
PktBuf
,
1
),
// NOTE non-blocking - see serveRecv XXX +buf
?
txerr
:
make
(
chan
error
,
1
),
// NOTE non-blocking - see Conn.Send
txdown
:
make
(
chan
struct
{}),
// rxdown: make(chan struct{}),
...
...
@@ -1690,7 +1689,7 @@ func (link *NodeLink) Send1(msg Msg) error {
return
err
}
conn
.
downRX
(
errConnClosed
)
// XXX just
new
conn this way
conn
.
downRX
(
errConnClosed
)
// XXX just
initially create
conn this way
err
=
conn
.
sendMsgDirect
(
msg
)
conn
.
lightClose
()
...
...
go/neo/t/neotest
View file @
0d1206b9
...
...
@@ -966,6 +966,7 @@ esac
# neo/py, wendelin.core, ... - must be pip install'ed - `neotest deploy` cares about that
go
install
-v
lab.nexedi.com/kirr/neo/go/...
go build
-o
zhash_go zhash.go
#go build -race -o zhash_go zhash.go
go build
-o
tsha1_go tsha1.go
# setup network & fs environment
...
...
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