Changeset 7ce01c9 in mod_gnutls


Ignore:
Timestamp:
Sep 22, 2010, 2:05:48 AM (9 years ago)
Author:
Nikos Mavrogiannopoulos <nmav@…>
Branches:
debian/master, debian/stretch-backports, jessie-backports, master, msva, upstream
Children:
0fce7c2
Parents:
41dd507
Message:

Corrected behavior in Keep-Alive connections (do not
terminate the connection prematurely)

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • NEWS

    r41dd507 r7ce01c9  
     1** Version 0.5.9 (unreleased)
     2- Corrected behavior in Keep-Alive connections (do not
     3  terminate the connection prematurely)
     4
    15** Version 0.5.8 (2010-08-18)
    26- Session tickets are enabled by default.
  • src/gnutls_io.c

    r41dd507 r7ce01c9  
    556556        apr_bucket *bucket = APR_BRIGADE_FIRST(bb);
    557557       
    558         if (AP_BUCKET_IS_EOC(bucket) || APR_BUCKET_IS_EOS(bucket)) {
    559             apr_bucket_brigade * tmpb;
    560            
    561             if (APR_BUCKET_IS_EOS(bucket)) {
    562                 tmpb = bb;
    563             } else {
    564                 tmpb = ctxt->output_bb;
    565             }
    566            
     558        if (AP_BUCKET_IS_EOC(bucket)) {
    567559            if (ctxt->session != NULL) {
    568560                do {
     
    574566            APR_BRIGADE_INSERT_TAIL(ctxt->output_bb, e);
    575567 
    576             if ((status = ap_pass_brigade(f->next, tmpb)) != APR_SUCCESS) {
     568            if ((status = ap_pass_brigade(f->next, ctxt->output_bb)) != APR_SUCCESS) {
    577569                apr_brigade_cleanup(ctxt->output_bb);
    578570                return status;
     
    585577            }
    586578            continue;
    587         } else if (APR_BUCKET_IS_FLUSH(bucket)) {
     579        } else if (APR_BUCKET_IS_FLUSH(bucket) || APR_BUCKET_IS_EOS(bucket)) {
    588580
    589581            apr_bucket_copy(bucket, &e);
Note: See TracChangeset for help on using the changeset viewer.