* Change Events#ssl_error signature from (error, peeraddr, peercert) to (error, ssl_socket)
The method signature should include the socket, so it determines what socket info is logged
Co-authored-by: ocowchun <ocowchun@gmail.com>
* test_events.rb - add test_ssl_error
Co-authored-by: ocowchun <ocowchun@gmail.com>
Co-authored-by: Nate Berkopec <nate.berkopec@gmail.com>
This work starts the effort of removing connected_port from the specs.
I have moved the code around a bit to get all connected_ports, the tests seem
to pass in the appropriate areas.
I want to verify this path before attempting to remove all UniquePort calls in
the tests.
Moves the require for puma/events from the individual test files and
into the main test helper.
The reason for this was while I was debugging the `test_puma_server.rb`
tests I was getting an error for an uninitialized constant for
`Puma::Event`.
Moving the require from the individual files to the test help means the
`puma/events` will always be included instead of having to remember to
do that. It makes debugging individual tests locally easier.
running `rake` loads all files starting with `test_` which is not supposed to also load the helper,
since the helper should be loaded by each test and is not a test itself.