Closed Bug 54956 Opened 26 years ago Closed 26 years ago

stress test client returns 0 (ok) even when session restart fails

Categories

(NSS :: Tools, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: nelson, Assigned: nelson)

Details

Attachments

(1 file)

NSS has a testing tool named "strsclnt" which exists to test that SSL session restarting works. It performs one full handshake (which counts as a single session cache miss), then then performs a user specified number of additional handshakes, all of which should reuse the SSL session established in the session cache by the first handshake. The test should only do one full handshake, and should report failure if it ever does more than one full handshake. But presently, the test always returns zero (indicating success) if it runs to completion without any handshake errors (e.g. failures during a handshake). It reports success even if all handshakes are full handshakes. It should return a non-zero value if more than one full handshake is done.
I have a question about this line: exitVal = (ssl3_hsh_sid_cache_misses + ssl3_hsh_sid_cache_not_ok) > 1; This means that the following three cases will all be considered a success: 1. cache_misses is 0 and cache_not_ok is 0. 2. cache_misses is 1 and cache_not_ok is 0. 3. cache_misses is 0 and cache_not_ok is 1. But you said before that only case 2 is a success...
You're right, so I changed that line to read as follows: exitVal = (ssl3_hsh_sid_cache_misses != 1) || (ssl3_hsh_sid_cache_not_ok != 0);
Status: NEW → ASSIGNED
OK. That was the only question I have. The patch is fine.
Could you check in the fix on the NSS_30_BRANCH too? Thanks.
Nelson, after you check in the fix on the NSS_30_BRANCH, please mark this bug FIXED with Target Milestone 3.0.1. Thanks.
Rather than merging rev 1.4 onto the NSS_30_BRANCH, I moved the branch tag NSS_30_BRANCH to point at rev 1.4 . Likewise, I moved the NSS_30_BRANCH tag to match the trunk for ssl.sh and sslstress.txt. I wanted to also do it for init.sh, but there are far too many differences between the branch and the trunk in that file.
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Target Milestone: --- → 3.0.1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: