go/neo/neonet: Demonstrate DialLink misbehaviour when all handshake attempts fail
Levin found that when all handshake attempts fail DialLink returns both link=nil and err=nil which breaks what callers expect and lead to segmentation fault when accessing that nil link. -> Add test to demonstrate the problem. With xfail removed that test currently fails as --- FAIL: TestDialLink_AllHandshakeErr (0.00s) panic: lab.nexedi.com/kirr/neo/go/neo/neonet.TestDialLink_AllHandshakeErr.gox.func4.1: lab.nexedi.com/kirr/neo/go/neo/neonet.TestDialLink_AllHandshakeErr.func2: DialLink to handshake-rejecting server: have: link=<nil> err=<nil> want: link=<nil> err=client:1 - server:2: handshake (client): unexpected EOF [recovered] We will fix the problem in the next patch. /reported-by @levin.zimmermann /reported-at kirr/neo!10
Showing
-
mentioned in merge request !10 (closed)
-
mentioned in commit levin.zimmermann/wendelin.core@24e95417
-
mentioned in commit levin.zimmermann/wendelin.core@f716c869
-
mentioned in commit levin.zimmermann/wendelin.core@53f39c6c
-
mentioned in commit nexedi/wendelin.core@764d4da8
Please register or sign in to comment