For OLS, you can patch
SSLConnection::write( const char * pBuf, int len )
call SSL_write() in a loop when len > 1400 or what ever chunk size.
To me, it may not be a good idea to send data in that small pieces.
Each SSL_write() will flush data out, which adds about 40-50 bytes SSL
protocol overhead per chunk. the overhead at network level is higher
with smaller chunk. and may cause too many write() system calls.
Internally, OpenSSL uses 16KB buffer, LSWS uses 8K or 4K buffer.
To reduce the memory allocation per connection, you may need to patch
OpenSSL code to use smaller buffer.
The goal of using smaller chunk is to reduce the memory cost per SSL
connection with sacrificed throughput (maybe not significant), I can
understand why google doing that as they want to maximize SSL
connections per server due to the amount of traffic to their service, it
may not apply to average users.
Chrome SPDY implementation send DATA frame in 2852 bytes to fit into 2 *
MTU.
Best regards,
George
> --
> You received this message because you are subscribed to the Google
> Groups "OpenLiteSpeed Development" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
openlitespeed-deve...@googlegroups.com.
> To post to this group, send email to
>
openlitespee...@googlegroups.com.
> Visit this group at
>
http://groups.google.com/group/openlitespeed-development.
> For more options, visit
https://groups.google.com/groups/opt_out.