This PR fixes the indefinite hang reported in #819.
The tlsHandshakeWithTimeout function in pkg/tlsx/ztls/ztls.go was previously blocking. I have refactored it to run in a separate goroutine with a buffered channel, ensuring the context timeout is strictly respected.
Verified with a new test case TestTLSHandshakeHang that simulates a hanging connection.
Fixes #819 /claim #819
Bug Fixes
Tests
Scatheus
@Scatheus
youssefosama3820009-commits
@youssefosama3820009-commits
ProjectDiscovery
@projectdiscovery