From: Marek Lindner <lindner_marek@yahoo.de>
To: The list for a Better Approach To Mobile Ad-hoc Networking
<b.a.t.m.a.n@lists.open-mesh.net>
Subject: Re: [B.A.T.M.A.N.] [vis] fixed partial json output
Date: Thu, 16 Jul 2009 19:00:54 +0800 [thread overview]
Message-ID: <200907161900.54293.lindner_marek@yahoo.de> (raw)
In-Reply-To: <9B01495A-3D13-463A-B4FC-3C5E129D32EF@7degrees.co.za>
On Thursday 16 July 2009 15:45:19 Antoine van Gelder wrote:
> But that is a choopchick and not really important one way or another,
> I think we both agree that switching to blocking sockets is a
> promising idea.
>
> Does anyone with insights into the gooey innards of vis.c have any
> thoughts about this strategy?
I did some little research and noticed that the non-blocking clients were
introduced by me in revision 491. After reading the commit message I roughly
remember the reason for the change to non blocking: We were working on the 3D
visualization tool s3d and could bring the vis server to a standstill by
running the TCP client (meshs3d) in gdb and stopping its execution. The TCP
client was not killed but the client would not read from the socket, hence the
TCP connection was still open but the TCP write call would not come back
either and hang forever. This solution was a quick fix which probably is far
from being perfect.
While searching for some info on that topic I found an interesting page which
might prove helpful: http://blog.netherlabs.nl/articles/2009/01/18/the-
ultimate-so_linger-page-or-why-is-my-tcp-not-reliable
Regards,
Marek
next prev parent reply other threads:[~2009-07-16 11:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-15 13:49 [B.A.T.M.A.N.] [vis] fixed partial json output jonathan mzengeza
2009-07-15 13:56 ` Sven Eckelmann
2009-07-15 14:26 ` jonathan mzengeza
2009-07-15 18:50 ` Sven Eckelmann
2009-07-16 5:49 ` Antoine van Gelder
2009-07-16 7:36 ` Sven Eckelmann
2009-07-16 7:45 ` Antoine van Gelder
2009-07-16 11:00 ` Marek Lindner [this message]
2009-07-17 7:10 ` jonathan mzengeza
2009-07-17 18:53 ` Marek Lindner
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=200907161900.54293.lindner_marek@yahoo.de \
--to=lindner_marek@yahoo.de \
--cc=b.a.t.m.a.n@lists.open-mesh.net \
/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