Closed zuiderkwast closed 3 years ago
Yes I know. There's a todo in the disconnect function.
Ah, didn't see that.
This is important to fix for 2.0 but not for 2.0.0-rc.1 so I will probably skip it for now.
I've fixed it. There's still some crashes in event_SUITE though but they're covered by #248 (lack of error handling). I'll see if I can fix it.
For future reference the other issue in event_SUITE
is a bug in Cowboy: https://github.com/ninenines/cowboy/issues/1479
When I run the test suites on current master, I get a
{case_clause, {ok, #Port<0.16>}}
error ingun:connecting/3
(gun.erl, line 1061).It happens in the test case
event_SUITE:tls_handshake_end_error_tls_connect_tls/1
. The guards prevent matching because the local variableTransport
isgun_tls_proxy
. The guards here are expecting it to be eithergun_tcp
orgun_tls
.