Closing the persistant connections

I’m stuck on the closing the persistant connections. the test says the connection is still open even though I have the header and I exit the while loop.

Do any one knows how do they check if the connection is open?

Hey @Tommer-Raz, could you upload your code to GitHub and share the link? It will be much easier to debug if I can run it directly.

Here you go: