Changeset f5a36ee in mod_gnutls
- Timestamp:
- Nov 11, 2015, 9:10:35 PM (7 years ago)
- Branches:
- asyncio, debian/master, debian/stretch-backports, jessie-backports, master, proxy-ticket, upstream
- Children:
- a63301f
- Parents:
- 02a6a18
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/gnutls_io.c
r02a6a18 rf5a36ee 241 241 } 242 242 243 while (1) { 244 245 do 246 rc = gnutls_record_recv(ctxt->session, buf + bytes, 247 wanted - bytes); 248 while (rc == GNUTLS_E_INTERRUPTED || rc == GNUTLS_E_AGAIN); 243 while (1) 244 { 245 rc = gnutls_record_recv(ctxt->session, buf + bytes, wanted - bytes); 246 247 if (rc == GNUTLS_E_INTERRUPTED) 248 ctxt->input_rc = APR_EINTR; 249 else if (rc == GNUTLS_E_AGAIN) 250 ctxt->input_rc = APR_EAGAIN; 249 251 250 252 if (rc > 0) { … … 557 559 } 558 560 559 if (status != APR_SUCCESS) { 561 if (status != APR_SUCCESS) 562 { 563 /* no data for nonblocking read, return APR_EAGAIN */ 564 if ((block == APR_NONBLOCK_READ) && (status == APR_EINTR)) 565 return APR_EAGAIN; 566 560 567 return gnutls_io_filter_error(f, bb, status); 561 568 }
Note: See TracChangeset
for help on using the changeset viewer.