Commit 90b88fa
committed
Don't set custom push/pull functions unconditionally
We set custom push/pull functions for GnuTLS so that it works under
socket-wrapper.
However, this has downsides:
- There is a slight performance impact
- We have also observed issues with nonblocking IO causing floods of
EAGAIN errors in the test suite.
This is fine for a test environment, but not when running for real.
To avoid issues when the code is actually being used, only set the
custom push/pull functions when SOCKET_WRAPPER_DIR environment variable
is set, indicating that we're running under socket-wrapper.
Signed-Off-By: Wouter Verhelst <w@uter.be>1 parent b1cfcf0 commit 90b88fa
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
389 | | - | |
390 | | - | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
391 | 395 | | |
392 | 396 | | |
393 | 397 | | |
| |||
0 commit comments