"extended socket error capability" and setting "verb 0"
Hi,
there is a problem with OpenVPN 1.4.0 (at least on Linux 2.4.20) when "EXTENDED_SOCKET_ERROR_CAPABILITY" is enabled and "verb" is set to 0. In this case openvpn will consume 100 % CPU in it's select loop when an error is reported because select indicates that there is data available on the UDP socket, but the data is never read (with recvmsg(..., MSG_ERRQUEUE)) because format_extended_socket_error isn't called.
bye, Christof
Signature · 2 lines
http://cmeerw.org JID: [email protected]... mailto cmeerw at web.de
Christof,
Thanks for figuring that one out!
It's definitely a bug, I've been able to reproduce it, and I should have a fix shortly.
James
Quoted 27 lines · Christof Meerwald
Hi,
there is a problem with OpenVPN 1.4.0 (at least on Linux 2.4.20) when "
EXTENDED_SOCKET_ERROR_CAPABILITY" is enabled and "verb" is set to 0. In this case openvpn will consume 100 % CPU in it's select loop when an error is reported because select indicates that there is data available on the UDP socket, but the data is never read (withrecvmsg(..., MSG_ERRQUEUE)) becauseformat_extended_socket_errorisn't called.bye, Christof
Signature · 13 lines
http://cmeerw.org JID: [email protected]... mailto cmeerw at web.de ------------------------------------------------------- Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara The only event dedicated to issues related to Linux enterprise solutions www.enterpriselinuxforum.com _______________________________________________ Openvpn-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openvpn-devel
I have a tentative fix. Please test if possible.
http://openvpn.sourceforge.net/beta/openvpn-1.4.0.2.tar.gz
(also in current CVS)
James
Quoted 27 lines · Christof Meerwald
Hi,
there is a problem with OpenVPN 1.4.0 (at least on Linux 2.4.20) when "
EXTENDED_SOCKET_ERROR_CAPABILITY" is enabled and "verb" is set to 0. In this case openvpn will consume 100 % CPU in it's select loop when an error is reported because select indicates that there is data available on the UDP socket, but the data is never read (withrecvmsg(..., MSG_ERRQUEUE)) becauseformat_extended_socket_errorisn't called.bye, Christof
Signature · 13 lines
http://cmeerw.org JID: [email protected]... mailto cmeerw at web.de ------------------------------------------------------- Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara The only event dedicated to issues related to Linux enterprise solutions www.enterpriselinuxforum.com _______________________________________________ Openvpn-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openvpn-devel
Quoted 3 lines · James Yonan
I have a tentative fix. Please test if possible.
Works for me, thanks a lot!
bye, Christof
Signature · 2 lines
http://cmeerw.org JID: [email protected]... mailto cmeerw at web.de