Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #235: #600

Merged
merged 3 commits into from
Aug 16, 2016
Merged

Fix #235: #600

merged 3 commits into from
Aug 16, 2016

Conversation

krizhanovsky
Copy link
Contributor

  • Introduce clients hash table, now new connection just get()'s TfwClient;
  • Since client can have many HTTP sessions, TfwSession is introduced to
    handle different sticky cookies for the same client;
  • Now received sticky cookie is verified, so timestamp is added to cookie value;
  • To keep HTTP sessions persistent sticky_secret config option is introduced;
  • Config option sess_lifetime is also introduced to limit sessions lifetime;
  • Sticky cookie is just a mechanism for HTTP sessions, so http_sticky is renamed
    to http_sess;
  • tfw_addr_get_sk_saddr() was removed as doubling for ss_getpeername();
  • TfwHttpMsg was replaced by TfwHttpReq and TfwHttpResp to make the logic explicit
    about what the arguements are;
  • tfw_http_prep_hexstring() is removed since there are standard bin2hex().

* Introduce clients hash table, now new connection just get()'s TfwClient;
* Since client can have many HTTP sessions, TfwSession is introduced to
  handle different sticky cookies for the same client;
* Now received sticky cookie is verified, so timestamp is added to cookie value;
* To keep HTTP sessions persistent sticky_secret config option is introduced;
* Config option sess_lifetime is also introduced to limit sessions lifetime;
* Sticky cookie is just a mechanism for HTTP sessions, so http_sticky is renamed
  to http_sess;
* tfw_addr_get_sk_saddr() was removed as doubling for ss_getpeername();
* TfwHttpMsg was replaced by TfwHttpReq and TfwHttpResp to make the logic explicit
  about what the arguements are;
* tfw_http_prep_hexstring() is removed since there are standard bin2hex().
if (!frang_mem_cache) {
TFW_ERR("frang: can't create cache\n");
if (unlikely(sizeof(FrangAcc) > sizeof(TfwClassifierPrvt))) {
TFW_ERR("frang: seems miscompilation problem\n");
Copy link
Contributor

@keshonok keshonok Aug 15, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be better to replace this with BUILD_BUG_ON() to run the check at compile time.

@krizhanovsky krizhanovsky merged commit e5117c2 into master Aug 16, 2016
@keshonok keshonok deleted the ak-235 branch October 12, 2016 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants