2 This patch was supplied by Landon Fuller and corrects a bug that
3 caused high CPU usage when connecting from bconsole to the Director.
6 Apply this patch to version 2.2.3 (it should work with any 2.2.x
10 patch -p0 <2.2.3-tls.patch
11 ./configure (your options)
17 ===================================================================
18 --- src/lib/tls.c (revision 5507)
19 +++ src/lib/tls.c (working copy)
23 case SSL_ERROR_WANT_READ:
24 + /* If we timeout on a select, this will be unset */
25 + FD_SET((unsigned)bsock->m_fd, &fdset);
28 + /* Block until we can read */
29 + select(fdmax, &fdset, NULL, NULL, &tv);
32 case SSL_ERROR_WANT_WRITE:
33 /* If we timeout on a select, this will be unset */
34 FD_SET((unsigned)bsock->m_fd, &fdset);
37 - /* Block until we can read or write */
38 - select(fdmax, NULL, &fdset, &fdset, &tv);
39 + /* Block until we can write */
40 + select(fdmax, NULL, &fdset, NULL, &tv);
43 case SSL_ERROR_ZERO_RETURN: