Hello!
My test keeps showing the “connection refused” message. It was working for the first few attempts I had with this challenge, but then it started giving me the same error even though I reverted back my code to an older version (following this).
The commit reverted back to is 0fbbc58
, which I expected to see “Expected connection to stay open, but it is close” like the first time, but now I continue to see the connection refused.
I noticed that I was on VPN at one point, not sure if that was the issue, but I’m disconnected now and still getting this error.
remote: [tester::#EJ5] Running tests for Stage #EJ5 (Concurrent connections)
remote: [tester::#EJ5] Running program
remote: [tester::#EJ5] $ ./your_program.sh
remote: [tester::#EJ5] Creating 2 parallel connections
remote: [tester::#EJ5] Creating connection 1
remote: [tester::#EJ5] Creating connection 2
remote: [tester::#EJ5] dial tcp [::1]:4221: connect: connection refused
remote: [tester::#EJ5] Test failed
remote: [tester::#EJ5] Terminating program
remote: [tester::#EJ5] Program terminated successfully
Here’s my code: Codecrafters EJ5 · GitHub
I also ran sudo lsof -i -n -P | grep 4221
and don’t see any process using port 4221.