Check-in [e84900f887]
Bounty program for improvements to Tcl and certain Tcl packages.
Overview
Comment:More debugging around TLS retries
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | tls-1-7
Files: files | file ages | folders
SHA1: e84900f887c1da823d39856e29b7418aafb4e7dd
User & Date: rkeene on 2016-12-07 14:43:57
Other Links: branch diff | manifest | tags
Context
2016-12-07
14:51
More debugging check-in: 9bb0350edb user: rkeene tags: tls-1-7
14:43
More debugging around TLS retries check-in: e84900f887 user: rkeene tags: tls-1-7
14:38
Added additional debugging around asyncronous sockets check-in: 033849bf66 user: rkeene tags: tls-1-7
Changes

Modified tlsIO.c from [6426f40f98] to [103755cb9d].

734
735
736
737
738
739
740
741
742
743



744
745
746
747
748
749
750
734
735
736
737
738
739
740



741
742
743
744
745
746
747
748
749
750






-
-
-
+
+
+







    if (statePtr->flags & TLS_TCL_CALLBACK) {
	return 0;
    }

    if (statePtr->flags & TLS_TCL_INIT
	    && !SSL_is_init_finished(statePtr->ssl)) {
	int errorCode;
	if (Tls_WaitForConnect(statePtr, &errorCode) <= 0
		&& errorCode == EAGAIN) {
	int errorCode = 0;
	if (Tls_WaitForConnect(statePtr, &errorCode) <= 0 && errorCode == EAGAIN) {
            dprintf("Async flag could be set (didn't check) and errorCode == EAGAIN");
	    return 0;
	}
    }

    return mask;
}