Check-in [7793b78e70]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Still looking into this
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | bug-eof-loop-6dd5588df6-2
Files: files | file ages | folders
SHA1:7793b78e70ee20482bc2e2d343c47e27ad85007c
User & Date: rkeene 2017-11-08 14:59:25
Context
2017-11-08
14:59
Still looking into this Leaf check-in: 7793b78e70 user: rkeene tags: bug-eof-loop-6dd5588df6-2
2017-10-17
03:57
Updated to use a more commonly accepted regexp when replacing the OpenSSL function name (addresses [6c9bf49455]) check-in: 12bf5e37e0 user: rkeene tags: trunk
Changes

Changes to tlsBIO.c.

   116    116   	int tclEofChan, tclErrno;
   117    117   
   118    118   	chan = Tls_GetParent((State *) BIO_get_data(bio), 0);
   119    119   
   120    120   	dprintf("[chan=%p] BioWrite(%p, <buf>, %d)", (void *)chan, (void *) bio, bufLen);
   121    121   
   122    122   	ret = Tcl_WriteRaw(chan, buf, bufLen);
          123  +if (bufLen == 31) {
          124  +ret = -1;
          125  +tclEofChan = 0;
          126  +tclErrno = EPIPE;
          127  +} else {
   123    128   
   124    129   	tclEofChan = Tcl_Eof(chan);
   125    130   	tclErrno = Tcl_GetErrno();
          131  +}
   126    132   
   127    133   	dprintf("[chan=%p] BioWrite(%d) -> %d [tclEof=%d; tclErrno=%d]", (void *) chan, bufLen, ret, tclEofChan, Tcl_GetErrno());
   128    134   
   129    135   	BIO_clear_flags(bio, BIO_FLAGS_WRITE | BIO_FLAGS_SHOULD_RETRY);
   130    136   
   131    137   	if (tclEofChan && ret <= 0) {
   132    138   		dprintf("Got EOF while reading, returning a Connection Reset error which maps to Soft EOF");