<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Networking on Noetic Nought</title>
    <link>https://punchagan.muse-amuse.in/tags/networking/</link>
    <description>Recent content in Networking on Noetic Nought</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <copyright>© 2006-2026 CC-BY-SA-4.0</copyright>
    <lastBuildDate>Thu, 12 Apr 2018 11:09:00 +0530</lastBuildDate>
    <atom:link href="https://punchagan.muse-amuse.in/tags/networking/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Weird ISP Issue</title>
      <link>https://punchagan.muse-amuse.in/blog/weird-isp-issue/</link>
      <pubDate>Thu, 12 Apr 2018 11:09:00 +0530</pubDate>
      <guid>https://punchagan.muse-amuse.in/blog/weird-isp-issue/</guid>
      <description>&lt;p&gt;I was trying to lookup the documentation for &lt;a href=&#34;http://click.pocoo.org/5/&#34;&gt;Click&lt;/a&gt; and I got redirected to a&#xA;page showing Werkzeug&amp;rsquo;s documentation. I&amp;rsquo;d assumed it was a broken configuration&#xA;on the server, because other subdomains like &lt;a href=&#34;http://lucumr.pocoo.org&#34;&gt;Armin&amp;rsquo;s blog&lt;/a&gt; also sent me to the&#xA;same page. I &lt;a href=&#34;https://twitter.com/punchagan/status/983885853343727616&#34;&gt;got in touch with Armin&lt;/a&gt; and he asked me if I was using &lt;a href=&#34;https://www.eff.org/https-everywhere&#34;&gt;https&#xA;everywhere&lt;/a&gt;, and that wasn&amp;rsquo;t supported by the server. But, I wasn&amp;rsquo;t. The next&#xA;thing to try was to switch my ISP and check, and viola it worked!&lt;/p&gt;&#xA;&lt;p&gt;I did some debugging and figured out that in some responses the HTTP status line&#xA;was not being sent, and the first line in the response contained &lt;code&gt;Date&lt;/code&gt;. Also,&#xA;the response seems to be correct, when I hit a hard refresh on the browser,&#xA;which sets the &lt;code&gt;Cache-Control&lt;/code&gt; header to &lt;code&gt;no-cache&lt;/code&gt;. So, it looks like some&#xA;cache in between me and the server is going nuts with this specific request.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;$ nc click.pocoo.org &lt;span class=&#34;m&#34;&gt;80&lt;/span&gt; &amp;lt; input.txt&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Date: Thu, &lt;span class=&#34;m&#34;&gt;12&lt;/span&gt; Apr &lt;span class=&#34;m&#34;&gt;2018&lt;/span&gt; 05:17:14 GMT&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Last-Modified: Mon, &lt;span class=&#34;m&#34;&gt;07&lt;/span&gt; Apr &lt;span class=&#34;m&#34;&gt;2014&lt;/span&gt; 18:35:36 GMT&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Connection: Keep-Alive&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;And the &lt;code&gt;input.txt&lt;/code&gt; file looks like this.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;HEAD / HTTP/1.1&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Host: click.pocoo.org&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;User-Agent: Mozilla/6.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/59.0&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Accept: */*&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Accept-Encoding: deflate, gzip&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Adding the line &lt;code&gt;Cache-Control: no-cache&lt;/code&gt; to this input causes the problem to go&#xA;away.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;$ nc click.pocoo.org &lt;span class=&#34;m&#34;&gt;80&lt;/span&gt; &amp;lt; input.txt&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;HTTP/1.1 &lt;span class=&#34;m&#34;&gt;301&lt;/span&gt; Moved Permanently&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Server: nginx&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Date: Thu, &lt;span class=&#34;m&#34;&gt;12&lt;/span&gt; Apr &lt;span class=&#34;m&#34;&gt;2018&lt;/span&gt; 05:30:56 GMT&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Content-Type: text/html&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Content-Length: &lt;span class=&#34;m&#34;&gt;178&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Connection: keep-alive&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Location: http://sphinx-doc.org/&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Also, I&amp;rsquo;m able to reproduce this with all the subdomains on &lt;code&gt;pocoo.org&lt;/code&gt; -&#xA;&lt;code&gt;click&lt;/code&gt;, &lt;code&gt;sphinx&lt;/code&gt;, &lt;code&gt;lucumr&lt;/code&gt;, &amp;hellip; I&amp;rsquo;m not sure if it has something to do with the&#xA;server, or if it is entirely independent of that. But, the problem does go away&#xA;when I switch to a different network.&lt;/p&gt;&#xA;&lt;p&gt;I&amp;rsquo;m not sure what I can do next to narrow down the problem, even more. Any&#xA;hints/tips appreciated.&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>Recurse Center, 2014-07-30</title>
      <link>https://punchagan.muse-amuse.in/recurse-center/recurse-center-2014-07-30/</link>
      <pubDate>Thu, 31 Jul 2014 08:40:16 -0400</pubDate>
      <guid>https://punchagan.muse-amuse.in/recurse-center/recurse-center-2014-07-30/</guid>
      <description>&lt;h2 id=&#34;re--learning-c&#34;&gt;(Re) Learning C&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Stephanie and I worked through the Networking chapter of the book.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;We faced some issues with writing 0 bytes to memory, since most of the code&#xA;was dealing with strings. I still haven&amp;rsquo;t figured out how to do this,&#xA;correctly.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;</description>
    </item>
  </channel>
</rss>
