Skip to contentSkip to conversation

Windows openvpnserv2 default reg values instead of crash

Openvpn-devel Christian Nilsson 2 participants 4 messages Apr 25, 2021 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Hi,

I have been wondering if there is any particular reason that crashes in openvpnserv2 should be preferred over having default values if missing from the registry?

Before knowing about proper communication channels for
openvpn development I opened https://github.com/OpenVPN/openvpnserv2/issues/13

There is also code written to change this which I currently use, and intend to send in as long as there is no good reason for it not to be included.

Looking forward to any information and feedback on the topic. Thanks!

/Christian

#2 lore raw

Hi,

Quoted 3 lines · Christian Nilsson

I have been wondering if there is any particular reason that crashes in openvpnserv2 should be preferred over having default values if missing from the registry?

openvpnserv2 should never *crash*.

"End itself with an error message" (which is not a "crash") is debatable for default values that leave no reasonable default fallback - but generally, if it makes sense to default to something, this is a good strategy.

So, please send patches :-) (using "git send-email" to stop your mail client from messing up tabs etc)

gert

Signature · 6 lines
"If was one thing all people took for granted, was conviction that if you 
 feed honest figures into a computer, honest figures come out. Never doubted 
 it myself till I met a computer with a sense of humor."
                             Robert A. Heinlein, The Moon is a Harsh Mistress

Gert Doering - Munich, Germany                             [email protected]...
#3 lore raw
Quoted 15 lines · Gert Doering

Hi,

Quoted 3 lines · Christian Nilsson

I have been wondering if there is any particular reason that crashes in openvpnserv2 should be preferred over having default values if missing from the registry?

openvpnserv2 should never *crash*.

"End itself with an error message" (which is not a "crash") is debatable for default values that leave no reasonable default fallback - but generally, if it makes sense to default to something, this is a good strategy.

Quoted 5 lines

So, please send patches :-) (using "git send-email" to stop your mail client from messing up tabs etc)

gert

Indeed debatable, hmm, but to be clear and avoid misunderstandings; "Exception occured during OpenVPN service start: " .. and rethrown exception that is not catched, so I still actually do think that crash is the correct term here.
This is with no registry values at all, that is "HKLM\Software\OpenVPN" not existing.

Starting the "git send-email" work, it has been some time since last time I did that ;-)
Thanks!

/Christian

#4 lore raw

Hi,

Quoted 7 lines · Christian Nilsson
Quoted 6 lines · Gert Doering
Quoted 3 lines · Christian Nilsson

I have been wondering if there is any particular reason that crashes in openvpnserv2 should be preferred over having default values if missing from the registry?

openvpnserv2 should never *crash*.

[..]

Quoted 5 lines

Indeed debatable, hmm, but to be clear and avoid misunderstandings; "Exception occured during OpenVPN service start: " .. and rethrown exception that is not catched, so I still actually do think that crash is the correct term here.

So, yes. It should never do that.

(I did not investigate to see what sort of "unexpected exit" it did, just state this as a sort of governing principle - if it aborts, it should so with a clear error message, explaining what is wrong. Not "uncaught exception" or "segmentation fault")

gert

Signature · 6 lines
"If was one thing all people took for granted, was conviction that if you 
 feed honest figures into a computer, honest figures come out. Never doubted 
 it myself till I met a computer with a sense of humor."
                             Robert A. Heinlein, The Moon is a Harsh Mistress

Gert Doering - Munich, Germany                             [email protected]...