kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: gd1100@gmail.com (Grzegorz Dwornicki)
To: kernelnewbies@lists.kernelnewbies.org
Subject: No subject
Date: Tue, 27 Jan 2015 17:49:33 +0100	[thread overview]
Message-ID: <CAOP-CUcBEEqnX8SvZtyVm2rExCYR1Mz_qB0hNU3aHTHcz4n2Vw@mail.gmail.com> (raw)

Keepalive question

Hello

I am bothered with very simple situaction. Lets say we have a TCP connection:

S1 <----> S2

Lets assume that this connection is using blocking sockets. and that
both hosts: s1 and s2 are using SO_KEEPALIVE. If they both are not
using this connection then the kernel? is sending packets with no data
to keep connection alive.

I have marked "the kernel?" because I am not sure who does this. I
think its the kernel but I am not sure.

What would happen if only one of them would use keepalive? Could that
empty packet break the loop inside of sk_busy_loop function and return
empty data to the application layer? Or would that while loop body
just re-run?

Hehe is the code (the while loop starts on 128 line)
http://lxr.oss.org.cn/source/include/net/busy_poll.h?a=arm#L95

             reply	other threads:[~2015-01-27 16:49 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-27 16:49 Grzegorz Dwornicki [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-08-02 10:48 No subject TU PHUNG VAN
2018-07-06  5:52 inventsekar
2018-05-08  6:10 Vishnu Gopinath
2016-03-07 17:52 nunojsa
2015-10-21  6:17 Rock Lee
2015-09-18 17:23 Shraddha Barke
2015-09-18  4:49 Shraddha Barke
2015-03-30  4:56 Woody Wu
2014-08-29 14:22 Ravi Raj
2014-08-29 14:47 ` Valdis.Kletnieks at vt.edu
2014-08-29 14:58   ` Ravi Raj
2014-08-29 15:32     ` No subject Valdis.Kletnieks at vt.edu
2014-08-29 15:34     ` Valdis.Kletnieks at vt.edu
2014-05-12  4:37 Sivakumar V
2014-04-21  2:59 Amber Thrall
2013-07-30  4:09 PV Juliet
2013-02-25  7:24 Prasad Lakshman
2013-02-15  5:48 Kaushal Billore
2013-02-06 22:30 Jimmy Pan
2012-12-05 13:48 Niroj Pokhrel
2012-11-19 11:41 唐忠诚
2012-11-02 10:46 Pritam Bankar
2012-10-15  9:24 Niroj Pokhrel
2012-08-13 10:09 Vivek Panwar
2012-08-06 10:43 =?gb18030?B?wObC5A==?=
2012-07-30 19:04 siddhesh phadke
2012-04-09 17:56 Martynov Semen
2012-04-10  2:26 ` Vladimir Murzin
2012-04-10  4:03   ` Martynov Semen
2012-04-10  4:48   ` Martynov Semen
2012-04-10 16:08     ` Vladimir Murzin
2012-04-10 17:00       ` Semen Martynov
2011-12-30 17:16 Philip Anil-QBW348
2011-12-16  2:18 Swapnil Gaikwad
2011-11-21 15:22 Jimmy Pan
2011-09-23  3:42 毕春雷
2011-06-16 11:41 Venkateswarlu P
2011-06-14 12:20 Venkateswarlu P
2011-03-22 18:13 nijil yes
2011-02-26  6:20 Aldyth Maharsha

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=CAOP-CUcBEEqnX8SvZtyVm2rExCYR1Mz_qB0hNU3aHTHcz4n2Vw@mail.gmail.com \
    --to=gd1100@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.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;
as well as URLs for NNTP newsgroup(s).