ndt-dev - [ndt-dev] Re: SSL support in NDT
Subject: NDT-DEV email list created
List archive
- From: Aaron Brown <>
- To: Peter Boothe <>
- Cc: "" <>
- Subject: [ndt-dev] Re: SSL support in NDT
- Date: Thu, 12 Nov 2015 21:00:14 -0500
Hey Peter,
This looks great. I'm curious what's the performance difference between NDT
over WS vs. WSS?
A few comments (none modulo the snapshot semantics give me pause from this
being merged):
shutdown_connection does SSL_shutdown/SSL_free, but close_connection just does
the SSL_free. Should close_connection be doing SSL_shutdown too? It'd be nice
if those could somehow be merged, but given there's only one user of shutdown,
and it's unlikely to need changed much, that's probably not a big deal.
Looking at this set of changes, I think it changes the snapshot semantics:
- lastThroughputSnapshot->time = secs() - tmptime;
+ lastThroughputSnapshot->time = secs() - start_time;
I think tmptime got updated with the end of the previous snapshot, so the
'time' field will be the duration of that snapshot. With the above change, the
time will be the duration from test start till end of the snapshot.
The test_s2c_srv has a raw_write function for maximum speed. The test_c2s_srv
has a similar thing, but it isn't split out into a function. A raw_read would
probably make sense there.
There are a few instances of "Connection conn = {0, NULL};". Given that 0 is
stdin, it may make sense to make that {-1, NULL}. I doubt it affects anything,
though.
I'm guessing the SFW test isn't used in TLS mode so TLS isn't used when
This looks great. I'm curious what's the performance difference between NDT
over WS vs. WSS?
A few comments (none modulo the snapshot semantics give me pause from this
being merged):
shutdown_connection does SSL_shutdown/SSL_free, but close_connection just does
the SSL_free. Should close_connection be doing SSL_shutdown too? It'd be nice
if those could somehow be merged, but given there's only one user of shutdown,
and it's unlikely to need changed much, that's probably not a big deal.
Looking at this set of changes, I think it changes the snapshot semantics:
- lastThroughputSnapshot->time = secs() - tmptime;
+ lastThroughputSnapshot->time = secs() - start_time;
I think tmptime got updated with the end of the previous snapshot, so the
'time' field will be the duration of that snapshot. With the above change, the
time will be the duration from test start till end of the snapshot.
The test_s2c_srv has a raw_write function for maximum speed. The test_c2s_srv
has a similar thing, but it isn't split out into a function. A raw_read would
probably make sense there.
There are a few instances of "Connection conn = {0, NULL};". Given that 0 is
stdin, it may make sense to make that {-1, NULL}. I doubt it affects anything,
though.
I'm guessing the SFW test isn't used in TLS mode so TLS isn't used when
setting up the server to client connection?
There's a line "struct testoptions; // declare it, but don't define it". Is there a
recursive header definition issue?
Cheers,
Aaron
On Wed, Nov 11, 2015 at 1:03 PM, Peter Boothe <> wrote:
SSL finally works in NDT. Please take a look. It's already been raked over the coals by my co-worker, so I think the average code quality level is pretty high.Once someone else who has the power to commit to NDT gives me the go-ahead, I will merge this into master and NDT will support SSL.-Peter
- [ndt-dev] SSL support in NDT, Peter Boothe, 11/11/2015
- [ndt-dev] Re: SSL support in NDT, Aaron Brown, 11/13/2015
- [ndt-dev] Re: SSL support in NDT, Peter Boothe, 11/13/2015
- [ndt-dev] Re: SSL support in NDT, Aaron Brown, 11/14/2015
- [ndt-dev] Re: SSL support in NDT, Peter Boothe, 11/17/2015
- [ndt-dev] Re: SSL support in NDT, Aaron Brown, 11/18/2015
- [ndt-dev] Re: SSL support in NDT, Peter Boothe, 11/19/2015
- [ndt-dev] Re: SSL support in NDT, Aaron Brown, 11/18/2015
- [ndt-dev] Re: SSL support in NDT, Peter Boothe, 11/17/2015
- [ndt-dev] Re: SSL support in NDT, Aaron Brown, 11/14/2015
- [ndt-dev] Re: SSL support in NDT, Peter Boothe, 11/13/2015
- [ndt-dev] Re: SSL support in NDT, Aaron Brown, 11/13/2015
Archive powered by MHonArc 2.6.16.