Skip to contentSkip to conversation

"extended socket error capability" and setting "verb 0"

Openvpn-devel Christof Meerwald 2 participants 4 messages May 11, 2003 – May 12, 2003

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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 (with recvmsg(..., MSG_ERRQUEUE)) because format_extended_socket_error isn'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
#2 lore raw
In reply to Christof Meerwald

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 (with recvmsg(..., MSG_ERRQUEUE)) because format_extended_socket_error isn'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