Changeset 9085f5b in mod_gnutls for src


Ignore:
Timestamp:
Mar 15, 2010, 4:48:49 PM (10 years ago)
Author:
Nokis Mavrogiannopoulos <nmav@…>
Branches:
debian/master, debian/stretch-backports, jessie-backports, master, msva, upstream
Children:
d02158b
Parents:
dcf1118
git-author:
Nikos Mavrogiannopoulos <nmav@…> (03/15/10 16:48:49)
git-committer:
Nokis Mavrogiannopoulos <nmav@…> (03/15/10 16:48:49)
Message:

Corrected issue with firefox and long post data (had to do
with read function not handling EAGAIN and EINTR correctly).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_io.c

    rdcf1118 r9085f5b  
    671671        if (APR_STATUS_IS_EAGAIN(rc) || APR_STATUS_IS_EINTR(rc)
    672672            || (rc == APR_SUCCESS && APR_BRIGADE_EMPTY(ctxt->input_bb))) {
    673             return 0;
    674         }
     673           
     674            if (APR_STATUS_IS_EOF(ctxt->input_rc)) {
     675                return 0;
     676            } else {
     677                gnutls_transport_set_errno(ctxt->session, EINTR);
     678                return -1;
     679            }
     680        }
     681       
    675682
    676683        if (rc != APR_SUCCESS) {
     
    690697    if (APR_STATUS_IS_EAGAIN(ctxt->input_rc)
    691698        || APR_STATUS_IS_EINTR(ctxt->input_rc)) {
     699        if (len == 0) {
     700            gnutls_transport_set_errno(ctxt->session, EINTR);
     701            return -1;
     702        }
     703
    692704        return (ssize_t) len;
    693705    }
Note: See TracChangeset for help on using the changeset viewer.