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)
Tracking
(Not tracked)
RESOLVED
FIXED
3.0.1
People
(Reporter: nelson, Assigned: nelson)
Details
Attachments
(1 file)
|
4.28 KB,
patch
|
Details | Diff | Splinter Review |
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.
| Assignee | ||
Comment 1•26 years ago
|
||
Comment 2•26 years ago
|
||
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...
| Assignee | ||
Comment 3•26 years ago
|
||
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
Comment 4•26 years ago
|
||
OK. That was the only question I have. The
patch is fine.
Comment 5•26 years ago
|
||
Could you check in the fix on the NSS_30_BRANCH too? Thanks.
Comment 6•26 years ago
|
||
Nelson, after you check in the fix on
the NSS_30_BRANCH, please mark this bug
FIXED with Target Milestone 3.0.1. Thanks.
| Assignee | ||
Comment 7•26 years ago
|
||
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.
Description
•