Artifacts Associated With Ticket 657abb4cd1f8f1032731ee0366c7cc643af778e7
Ticket change [01f98a177b] (rid 1342) by anonymous on 2018-03-21 16:23:14:
- foundin initialized to: "1.7.16"
- icomment:
If a parent process opens a TLS socket prior to forking, and its child process closes it, this has the unfortunate side-effect of terminating the parent's connection. With a non-TLS socket this does not happen, i.e., closing the parent's socket in the child has no effect on the parent. <br><br> If a fix for this is not implemented, could you please detail what code changes would be necessary to do so? That way I can implement it myself without requiring it to be a feature for all users of this library.
- login: "anonymous"
- mimetype: "text/html"
- private_contact initialized to: "402047c59996d0e7bae134707a6f222ec0914675"
- severity initialized to: "Important"
- status initialized to: "Open"
- title initialized to: "TLS Socket Closed in Child Process"
- type initialized to: "Feature Request"
Ticket change [35f8675f69] (rid 1343) by anonymous on 2018-03-21 17:49:16:
- icomment:
In tls.c, Tls_Clean, if I comment out the BIO_free_all call, this problem goes away. However, will this cause a memory leak? Is there some better way you can think of that I can handle this situation? I would ideally like the option of closing the socket and freeing all OpenSSL structures but not sending a close notify.
- login: "anonymous"
- mimetype: "text/x-fossil-plain"
- priority changed to: "Immediate"
- resolution changed to: "Open"
- icomment:
Ticket change [183ca4dc02] (rid 1475) by rkeene on 2019-11-14 01:11:32:
- icomment:
Probably the best solution is to enable "fast-path" during compilation, which lets OpenSSL handle that part of the process for TCP sockets. This will eventually be made the default, it seems to be much better.
- login: "rkeene"
- mimetype: "text/x-fossil-plain"
- icomment: