Make CSTP connection in a single SSL record
authorDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 30 May 2012 00:22:16 +0000 (01:22 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 30 May 2012 16:41:10 +0000 (17:41 +0100)
commit7d974cd01f11f7eed3c75b5803129e75fbcf83a1
tree6a03bc4613ade1afb926d19d3f21d86d9fb5499f
parent4f80d92de24c5f58f3b50d337d81a0cc06ffc0b1
Make CSTP connection in a single SSL record

By creating a buffer with the request and sending it in a single SSL record,
I roughly halve the amount of time it takes for the round trip from 215ms
to 116ms.

Introduce a buf_append() function to help with processing the buffer, since
I shouldn't just be using sprintf() like other places do. Will fix those
next...

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
cstp.c
libopenconnect.map.in