public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "David S. Miller" <davem@redhat.com>
To: balbir_soni@hotmail.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: [BUG] Suspected bug in getpeername and getsockname
Date: Thu, 17 Jan 2002 15:38:59 -0800 (PST)	[thread overview]
Message-ID: <20020117.153859.26929091.davem@redhat.com> (raw)
In-Reply-To: <F79oay0q0NTY9agv3Su00012f71@hotmail.com>
In-Reply-To: <F79oay0q0NTY9agv3Su00012f71@hotmail.com>

   From: "Balbir Singh" <balbir_soni@hotmail.com>
   Date: Thu, 17 Jan 2002 15:35:59 -0800

   
   >From: "David S. Miller" <davem@redhat.com>
   >Optimizing error cases never bears any fruit.
   
   In this case, I certainly think it does. Could u give a
   case as to why doing this would be harmful? I think the
   only issue can be maintainability and doing the change
   cleanly. But I think u are a good maintainer and will
   accept the changes only if they are properly fixed.
   Right :-)

If I give up the maintainability (ie. make the code more error prone
due to duplication) I better be getting something back.

Can the user eat up more than a scheduling quantum because of the
work done by ->getname()?  I certainly don't think you can prove
this.

Since the user can't, there is no real gain from the change, only
negative maintainability aspects.  (and perhaps that it would make
you happy)

It certainly isn't work the long discussion we're having about it,
that is for sure.

You want this to make your broken getname() protocol semantics work
and I'd like you to address that instead.  I get the feeling that
you've designed this weird behavior and that it is not specified in
any standard anyways that your protocol must behave in this way.  I
suggest you change it to work without the user length being
available.

Franks a lot,
David S. Miller
davem@redhat.com

  reply	other threads:[~2002-01-17 23:40 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-17 23:35 [BUG] Suspected bug in getpeername and getsockname Balbir Singh
2002-01-17 23:38 ` David S. Miller [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-01-18  0:05 Balbir Singh
2002-01-17 23:20 Balbir Singh
2002-01-17 23:26 ` David S. Miller
2002-01-17 22:11 Balbir Singh
2002-01-17 22:30 ` David S. Miller
2002-01-17 16:27 Balbir Singh
2002-01-17 20:24 ` kuznet
2002-01-17 21:11 ` David S. Miller
2002-01-16  0:51 Balbir Singh
2002-01-17  0:54 ` David S. Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020117.153859.26929091.davem@redhat.com \
    --to=davem@redhat.com \
    --cc=balbir_soni@hotmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox