Description of problem:
After fixing bz1388422, new behaviour brings serious performance penalty because of waiting in close_wait state. We are experiencing great difficulties e.g. in our scenario of testing tls libraries' interoperability.
I think the old behaviour (ignoring sockets with TIME_WAIT) should remain as default and users who really want to wait for this should state it explicitly, e.g. with extra argument.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. openssl s_server -key .. -cert .. &
2. (echo Q; sleep 3) |openssl s_client -CAfile ..
3. killall openssl
4. netstat -atn |grep 4433
5. rlWaitForSocket --close 4433
tcp 0 0 ::1:35176 ::1:4433 TIME_WAIT
... waits for almost a minute
wait ends almost instantly
*** This bug has been marked as a duplicate of bug 1416014 ***