Changeset 8e33f2d in mod_gnutls
- Timestamp:
- Sep 25, 2005, 2:27:08 PM (18 years ago)
- Branches:
- asyncio, debian/master, debian/stretch-backports, jessie-backports, main, master, msva, proxy-ticket, upstream
- Children:
- 7bebb42
- Parents:
- 740a39e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/gnutls_io.c
r740a39e r8e33f2d 354 354 } 355 355 356 #define HANDSHAKE_MAX_TRIES 100 356 357 static int gnutls_do_handshake(mgs_handle_t * ctxt) 357 358 { 358 359 int ret; 359 360 int errcode; 361 int maxtries = HANDSHAKE_MAX_TRIES; 362 360 363 if (ctxt->status != 0) { 361 364 return -1; … … 365 368 do { 366 369 ret = gnutls_handshake(ctxt->session); 367 } while (ret == GNUTLS_E_AGAIN); 368 370 maxtries--; 371 } while (ret == GNUTLS_E_AGAIN && maxtries > 0); 372 373 if (maxtries < 1) { 374 ctxt->status = -1; 375 #if USING_2_1_RECENT 376 ap_log_cerror(APLOG_MARK, APLOG_ERR, 0, ctxt->c, 377 "GnuTLS: Handshake Failed. Hit Maximum Attempts"); 378 #else 379 ap_log_error(APLOG_MARK, APLOG_ERR, 0, ctxt->c->base_server, 380 "GnuTLS: Handshake Failed. Hit Maximum Attempts"); 381 #endif 382 gnutls_alert_send(ctxt->session, GNUTLS_AL_FATAL, 383 gnutls_error_to_alert(ret, NULL)); 384 gnutls_deinit(ctxt->session); 385 return -1; 386 } 387 369 388 if (ret < 0) { 370 389 if (ret == GNUTLS_E_WARNING_ALERT_RECEIVED
Note: See TracChangeset
for help on using the changeset viewer.