Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add scipts to monitor nginx ssl session ticket keys and session ticket r... #7

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

lziest
Copy link

@lziest lziest commented Nov 24, 2014

...esumptions.

@lziest
Copy link
Author

lziest commented Nov 24, 2014

change code style and file naming style. Make them consistent with existing ones.

@@ -0,0 +1,19 @@
// module nginx.openssl_ex_data
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I still don't like this module name. given that all these functions are related to OpenSSL only (and not nginx at all), you should probably just name it openssl instead of nginx.openssl_ex_data. Thoughts?

@agentzh
Copy link
Member

agentzh commented Nov 24, 2014

@lziest Also, will you add some corresponding docs to the file README.markdown?

@lziest lziest force-pushed the lziest/ngx-ssl-session-ticket-keys branch from 941888d to 3eb5acd Compare November 24, 2014 22:38
@lziest
Copy link
Author

lziest commented Nov 24, 2014

Add docs, squashed minor changes and rebased.

@@ -0,0 +1,19 @@
// module nginx.openssl
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's rename it to just openssl because this module has nothing to do with nginx.

@agentzh
Copy link
Member

agentzh commented Nov 25, 2014

Please chmod your samples/*.sxx files to executable.


```bash
# assuming one nginx worker process has the pid 3781.
$ ./samples/ngx-ssl-session-ticket-keys.sxx -I ./tapset -x 3781
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also add a line to set PATH environment, just like the docs for other tools. Thank you :)

@lziest lziest force-pushed the lziest/ngx-ssl-session-ticket-keys branch from 72bb100 to bba6a34 Compare November 25, 2014 21:56
$ export PATH=$PWD:$PATH

# assuming one nginx worker process has the pid 3781.
$ ./samples/ngx-ssl-session-ticket-keys.sxx -x 3781
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will you add some sample outputs?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, please add sample outputs here in its docs and also some brief explanation if not too obvious.

@agentzh
Copy link
Member

agentzh commented Jan 27, 2015

@lziest Please add support for the --arg time=SECONDS option, otherwise it's good to merge :) Thanks!

printf("last dec key:\n")
print_session_ticket_key(last_key)
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this tool should exit here as soon as it dumps the first key set. Thoughts?

@lziest
Copy link
Author

lziest commented Jan 27, 2015

I would like to squash the commits into one once it's ok to merge

dec key:
key name: f14c1d6611ad4802eccf6332f3b356f5
dec key:
key name: b9cb4fb269a4148cc7c19c71d9e8554d
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still no indentation in the output? It's hard to look ;)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, still miss that.

}
printf("Session ticket resumption attempts ratio: %d%%\n", ratio1)
printf("Session ticket resumption success ratio: %d%%\n", ratio2)
printf("Total session ticket resumption rate: %d%%\n",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've found these ratio descriptions a bit confusing. Maybe you can make it even clearer? How about these:

Ticket resumption attempts ratio in all SSL sessions: %d
Ticket resumption success ratio in all attempts: %d
Resumed ticket sessions in all SSL sessions: %d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants