]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
Simplify and speed-up ssl_io_data_dump().
authorChristophe Jaillet <jailletc36@apache.org>
Sat, 1 Aug 2020 10:42:57 +0000 (10:42 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Sat, 1 Aug 2020 10:42:57 +0000 (10:42 +0000)
commitbafd7197724eb98b81975aa60f35f1e5dbe520eb
treed47f03e83b93ff677f80b0f73effed36437c3351
parent7fafffc8aa18bbed18d7cefa10bea7ee8c3d4227
Simplify and speed-up ssl_io_data_dump().

Instead of using a temp buffer for each byte or char written, and calling
strlen over and over again to find the place where to copy this buffer,
write directly at the correct place in the final buffer, and take advantage
of 'apr_snprintf' returning the number of bytes copied.

This looks like a hot path when running the test framework (because of TRACE7), so it could be slighly useful in this use case :)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1880500 13f79535-47bb-0310-9956-ffa450edef68
modules/ssl/ssl_engine_io.c