<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://baszerr.eu/lib/exe/css.php?s=feed" type="text/css"?>
<rss version="2.0">
    <channel xmlns:g="http://base.google.com/ns/1.0">
        <title>BaSzErr - blog:2016:07:02</title>
        <description></description>
        <link>https://baszerr.eu/</link>
        <lastBuildDate>Thu, 30 Apr 2026 06:02:02 +0000</lastBuildDate>
        <generator>FeedCreator 1.8</generator>
        <image>
            <url>https://baszerr.eu/lib/exe/fetch.php?media=wiki:dokuwiki.svg</url>
            <title>BaSzErr</title>
            <link>https://baszerr.eu/</link>
        </image>
        <item>
            <title>docker_daemon_and_networking</title>
            <link>https://baszerr.eu/doku.php?id=blog:2016:07:02:docker_daemon_and_networking</link>
            <description>
&lt;h1 class=&quot;sectionedit1&quot; id=&quot;docker_daemon_and_networking&quot;&gt;2016-07-02 - docker daemon and networking&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;

&lt;p&gt;
&lt;a href=&quot;https://baszerr.eu/lib/exe/detail.php?id=blog%3A2016%3A07%3A02%3Adocker_daemon_and_networking&amp;amp;media=blog:2016:07:02:docker_ogo.png&quot; class=&quot;media&quot; title=&quot;blog:2016:07:02:docker_ogo.png&quot;&gt;&lt;img src=&quot;https://baszerr.eu/lib/exe/fetch.php?w=400&amp;amp;tok=6fb1ea&amp;amp;media=blog:2016:07:02:docker_ogo.png&quot; class=&quot;mediaright&quot; align=&quot;right&quot; loading=&quot;lazy&quot; title=&quot;docker logo&quot; alt=&quot;docker logo&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;
i recently had a problem with &lt;a href=&quot;https://en.wikipedia.org/wiki/docker (software)&quot; class=&quot;interwiki iw_wp&quot; title=&quot;https://en.wikipedia.org/wiki/docker (software)&quot;&gt;docker&lt;/a&gt; 1.8.x, on one of the machines. starting daemon caused the following error message:
&lt;/p&gt;
&lt;pre class=&quot;code&quot;&gt;Error starting daemon: Error initializing network controller: Error creating default &amp;quot;bridge&amp;quot; network: can&amp;#039;t find an address range for interface &amp;quot;docker0&amp;quot;&lt;/pre&gt;

&lt;p&gt;
it turns out &lt;a href=&quot;https://github.com/docker/docker/issues/362&quot; class=&quot;urlextern&quot; title=&quot;https://github.com/docker/docker/issues/362&quot; rel=&quot;ugc nofollow&quot;&gt;docker has a problem with parsing network interfaces&lt;/a&gt;, when a lot of different routes were setup. in my case there are unusual names of the interfaces, VPN and some other custom routing to multiple networks.
&lt;/p&gt;

&lt;p&gt;
it turned out that starting daemon with explicitly provided network range solved the problem. in /etc/default/docker one must add the following line, to make it work:
&lt;/p&gt;
&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;re2&quot;&gt;DOCKER_OPTS&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;--bip=172.17.42.1/16&amp;quot;&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;
…which is the default, btw. ;)
&lt;/p&gt;

&lt;/div&gt;
</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 15 Jun 2021 20:09:20 +0000</pubDate>
        </item>
        <item>
            <title>gcm_and_signal_private_messenger</title>
            <link>https://baszerr.eu/doku.php?id=blog:2016:07:02:gcm_and_signal_private_messenger</link>
            <description>
&lt;h1 class=&quot;sectionedit1&quot; id=&quot;gcm_and_signal_private_messenger&quot;&gt;2016-07-02 - GCM and Signal private messenger&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;

&lt;p&gt;
&lt;a href=&quot;https://baszerr.eu/lib/exe/detail.php?id=blog%3A2016%3A07%3A02%3Agcm_and_signal_private_messenger&amp;amp;media=blog:2016:07:02:signal_logo.png&quot; class=&quot;media&quot; title=&quot;blog:2016:07:02:signal_logo.png&quot;&gt;&lt;img src=&quot;https://baszerr.eu/lib/exe/fetch.php?w=200&amp;amp;tok=4f9c33&amp;amp;media=blog:2016:07:02:signal_logo.png&quot; class=&quot;mediaright&quot; align=&quot;right&quot; loading=&quot;lazy&quot; title=&quot;signal logo&quot; alt=&quot;signal logo&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;
i use &lt;a href=&quot;https://whispersystems.org/blog/signal/&quot; class=&quot;urlextern&quot; title=&quot;https://whispersystems.org/blog/signal/&quot; rel=&quot;ugc nofollow&quot;&gt;signal&lt;/a&gt; daily on my phone. recently encrypted communications got delayed. it was notorious to received messages 1-2h old, often in a wrong order. there is &lt;a href=&quot;http://support.whispersystems.org/hc/en-us/articles/213190487-Why-is-there-a-delay-in-receiving-messages-&quot; class=&quot;urlextern&quot; title=&quot;http://support.whispersystems.org/hc/en-us/articles/213190487-Why-is-there-a-delay-in-receiving-messages-&quot; rel=&quot;ugc nofollow&quot;&gt;a great FAQ about delayed messages&lt;/a&gt; issues. there can be a lo of different root causes. usually it boils down to having some services disabled after screen is off. for instance this was the exact problem on my friend&amp;#039;s phone. however it did not solved my problem.
&lt;/p&gt;

&lt;p&gt;
there were two interesting things to observe. first was that is happens only when i&amp;#039;m not using Signal – if i do check it every few minutes, i get messages fast or with minimal delay tops. second was that it always work fine on wifi, at home.
&lt;/p&gt;

&lt;p&gt;
it turned out, the problem is how &lt;a href=&quot;https://developers.google.com/cloud-messaging/gcm&quot; class=&quot;urlextern&quot; title=&quot;https://developers.google.com/cloud-messaging/gcm&quot; rel=&quot;ugc nofollow&quot;&gt;GCM&lt;/a&gt; is working. it does open a persistent TCP channel from a phone towards the cloud. it does not however send keep-alives. this means that if you&amp;#039;re connected via network, that has statefull firewalls, they can timeout connection tracking, on connections that does nothing for some time. apparently this was the case when connecting via my mobile operator&amp;#039;s network, causing connection to get silently (!!) dropped every few minutes. the only way to detect that was to open signal, so that it connects to cloud explicitly and then detects connection is down and reconnects, receiving all the queued messages.
&lt;/p&gt;

&lt;p&gt;
&lt;a href=&quot;https://baszerr.eu/lib/exe/detail.php?id=blog%3A2016%3A07%3A02%3Agcm_and_signal_private_messenger&amp;amp;media=blog:2016:07:02:pnf_logo.png&quot; class=&quot;media&quot; title=&quot;blog:2016:07:02:pnf_logo.png&quot;&gt;&lt;img src=&quot;https://baszerr.eu/lib/exe/fetch.php?w=200&amp;amp;tok=e1a409&amp;amp;media=blog:2016:07:02:pnf_logo.png&quot; class=&quot;media&quot; loading=&quot;lazy&quot; title=&quot;PNF logo&quot; alt=&quot;PNF logo&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
there is an interesting and a very simple hack for this – just send some dummy messages more often than TCP will timeout. there is a simple app for that, called &lt;a href=&quot;https://play.google.com/store/apps/details?id=com.andqlimax.pushfixer.noroot&quot; class=&quot;urlextern&quot; title=&quot;https://play.google.com/store/apps/details?id=com.andqlimax.pushfixer.noroot&quot; rel=&quot;ugc nofollow&quot;&gt;push notifications fixer&lt;/a&gt;. it runs in a background and sends dummy data to GCM, in predefined intervals, ensuring the connection is still open. the default timeout is 5 minutes. it did not worked for me though. since usual TCP timeout is set to 3 minutes, i&amp;#039;ve selected 2 minutes interval and now everything works like a charm!
&lt;/p&gt;

&lt;/div&gt;
</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 15 Jun 2021 20:09:20 +0000</pubDate>
        </item>
    </channel>
</rss>
