session_shared: negotiate init sz parameters MP-465
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 9 Jul 2013 11:08:16 +0000 (13:08 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 9 Jul 2013 11:08:16 +0000 (13:08 +0200)
commit6de003d8fb16f703d2c71c21128423cf691ce45d
treee928dbf61c766c0ef2f807ce863fa2d2d696ebc0
parentb8f4ac1af9456465a24ecd338fd998e292030abf
session_shared: negotiate init sz parameters MP-465

By default, session_shared will honor the paramters given by client.
An alternative, but not implemented, algorithm would be to only
re-use sessions with same sz parameters. This however, could reduce
re-use of sessions a lot. Hence this, simple algorithm instead. The
negotiation to a maximum sz values can be enabled by using
  <init maximum-record-size="sz1" preferred-message-size="sz2"/>
in configuration. This will make session_shared send those values
to backends and use returned init values in negotaition to
client before session_shared.
etc/config-shared1.xml
src/filter_session_shared.cpp
xml/schema/filter_session_shared.rnc