Expose session ticket statistics.

Motivation:

We recently added support for session ticket statistics which we can expose now.

Modifications:

Expose the statistics.

Result:

Be able to obtain session ticket statistics.
This commit is contained in:
Norman Maurer 2016-06-13 11:13:31 +02:00
parent ee3c8e0580
commit 2546d99864
2 changed files with 30 additions and 1 deletions

View File

@ -123,4 +123,33 @@ public final class OpenSslSessionStats {
public long cacheFull() {
return SSLContext.sessionCacheFull(context.ctx);
}
/**
* Returns the number of times a client presented a ticket that did not match any key in the list.
*/
public long ticketKeyFail() {
return SSLContext.sessionTicketKeyFail(context.ctx);
}
/**
* Returns the number of times a client did not present a ticket and we issued a new one
*/
public long ticketKeyNew() {
return SSLContext.sessionTicketKeyNew(context.ctx);
}
/**
* Returns the number of times a client presented a ticket derived from an older key,
* and we upgraded to the primary key.
*/
public long ticketKeyRenew() {
return SSLContext.sessionTicketKeyRenew(context.ctx);
}
/**
* Returns the number of times a client presented a ticket derived from the primary key.
*/
public long ticketKeyResume() {
return SSLContext.sessionTicketKeyResume(context.ctx);
}
}

View File

@ -224,7 +224,7 @@
<!-- Fedora-"like" systems. This is currently only used for the netty-tcnative dependency -->
<os.detection.classifierWithLikes>fedora</os.detection.classifierWithLikes>
<tcnative.artifactId>netty-tcnative</tcnative.artifactId>
<tcnative.version>1.1.33.Fork17</tcnative.version>
<tcnative.version>1.1.33.Fork18</tcnative.version>
<tcnative.classifier>${os.detected.classifier}</tcnative.classifier>
<epoll.classifier>${os.detected.name}-${os.detected.arch}</epoll.classifier>
<logging.config>${project.basedir}/../common/src/test/resources/logback-test.xml</logging.config>