<div dir="ltr">I've just checked out your code.<div>I think the big difference is that my code keeps the socket open and uses it for multiple queries while yours connects, sends one query, fetches the result and closes the socket.</div><div><br></div><div>The issue never happens for the first query.</div><div>It takes ~50 queries before bird resets the connection.</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-11-13 5:54 GMT+01:00 Dmitry S. Nikolaev <span dir="ltr"><<a href="mailto:dnikolaev@mega-net.ru" target="_blank">dnikolaev@mega-net.ru</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <p>Hi.</p>
    I had similar experience when wrote LG for bird.<br>
    I don`t have any problems. You can try my code, it is avail at
    <a class="m_-1674402417082466365moz-txt-link-freetext" href="http://bird-lg.subnets.ru/" target="_blank">http://bird-lg.subnets.ru/</a><br>
    <br>
    <pre class="m_-1674402417082466365moz-signature" cols="72">With best regards, Dmitry S. Nikolaev

Moscow, Russia
phone: <a href="tel:+7%20499%20678-80-07" value="+74996788007" target="_blank">+7 (499) 678 8007</a> [ext. 6003]
fax: <a href="tel:+7%20499%20678-80-07" value="+74996788007" target="_blank">+7 (499) 678 8007</a> [ext. 7777]
www: <a class="m_-1674402417082466365moz-txt-link-freetext" href="http://www.mega-net.ru" target="_blank">http://www.mega-net.ru</a>
mail: <a class="m_-1674402417082466365moz-txt-link-abbreviated" href="mailto:dnikolaev@mega-net.ru" target="_blank">dnikolaev@mega-net.ru</a>
SIP URI: <a class="m_-1674402417082466365moz-txt-link-abbreviated" href="mailto:dnikolaev@sip.mega-net.ru" target="_blank">dnikolaev@sip.mega-net.ru</a> || <a class="m_-1674402417082466365moz-txt-link-abbreviated" href="mailto:dn@sip.mega-net.ru" target="_blank">dn@sip.mega-net.ru</a>
</pre><div><div class="h5">
    <div class="m_-1674402417082466365moz-cite-prefix">On 12.11.2017 14:47, Oliver Herms
      wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">Hello bird users,
        <div><br>
        </div>
        <div>I'm running bird 1.6.3 on ubuntu 16.04 as kind of a route
          server.</div>
        <div>I wrote a piece of software that connects to the bird
          control-socket and runs queries against it like this: "show
          route all for x.y.z.a protocol xxx".</div>
        <div>The software keeps the socket open and executes the queries
          in a loop persisting of a write() call followed by a read()
          call. </div>
        <div><br>
        </div>
        <div>Now to the problem:</div>
        <div>At some point bird resets the connection and the logs are
          not showing anything related.</div>
        <div><br>
        </div>
        <div>Did anyone make similar experiences or can help me to find
          out what's wrong with bird here?</div>
        <div><br>
        </div>
        <div>Thanks</div>
        <div>Oliver<br>
          -- <br>
          <div class="m_-1674402417082466365gmail_signature" data-smartmail="gmail_signature">
            <div dir="ltr">
              <div dir="ltr">
                <div dir="ltr">
                  <div dir="ltr">Oliver Herms</div>
                  <div dir="ltr"><a href="mailto:oliver.peter.herms@gmail.com" target="_blank">oliver.peter.herms@gmail.com</a><br>
                    <div><br>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
  </div></div></div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr">Oliver Herms</div><div dir="ltr"><a href="mailto:oliver.peter.herms@gmail.com" target="_blank">oliver.peter.herms@gmail.com</a><br><div>+49 (0) 174 434 155 6</div></div></div></div></div></div></div>
</div>