ssl_write using scatter-gather buffer..

View: New views
1 Messages — Rating Filter:   Alert me  

ssl_write using scatter-gather buffer..

by Vineet Kumar-8 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
 My HTTPS application code currently uses a scatter-gather vector to point to each HTTP_response_header memory chunk. Then ssl_write is invokved on each such vector entry. However, this is inefficient because SSL encrypts every chunk in the vector instead of collating all those chunks together and encrypting exactly once.
 So, if I want to move to batch-headers-then-encrypt model it there
  (a) either a way for ssl_write to use a scatter gather (or a BIO-based approach) directly
  (b) or a flag in ssl_write that delays encrypting until we tell it to?

Thanks,

Vineet Kumar