Thread (16 messages) flat view 16 messages, 4 authors, 2016-06-15

Re: [PATCHv2] connect: display connection progress

From: Linus Torvalds <torvalds@linux-foundation.org>
Date: 2016-06-15 22:43:09

Possibly related (same subject, not in this thread)


On Thu, 10 May 2007, Alex Riesen wrote:
There is only one bit of flags ever used. What are the others for?
I actually think it tends to be better to have a "flags" field rather than 
a boolean, even if it only ends up having one flag.
Why use negative logic?
This one I agree with. Ity would be nicer with CONNECT_VERBOSE than with 
NET_QUIET, and having the tests be

	if (flags & CONNECT_VERBOSE)
		..

instead.
What was wrong with plain "int verbose"?
I could see wanting to add flags to do things like disable insecure 
connections etc, so there's certainly nothing saying that "verbose" is the 
only valid way to do things.
What addresses were tried by connect?
That would be _really_ verbose. Maybe a CONNECT_EXTRA_VERBOSE?

		Linus
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help