Page MenuHome GnuPG

Change SOCK_CTX (internal one) system hooks

Authored by werner on Dec 6 2017, 10:22 AM.



Thread initialization is better to be deferred after fork (in case of UNIX).
assuan_sock_init should be earlier.
Thus, we need to change system hooks for assuan_sock_* interface.
Or else, on Windows, it may cause hang on server.

Test Plan

test on Windows.

Diff Detail

rG GnuPG
Lint Skipped
Unit Tests Skipped

Event Timeline

Tested it on Windows, with the sleep test patch in Libassuan it does not hang anymore when it hanged without this change.

This revision is now accepted and ready to land.Dec 6 2017, 10:36 AM
werner closed this revision.
werner edited reviewers, added: gniibe; removed: werner.