I've just checked out your code.
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.

The issue never happens for the first query.
It takes ~50 queries before bird resets the connection.

2017-11-13 5:54 GMT+01:00 Dmitry S. Nikolaev <dnikolaev@mega-net.ru>:

Hi.

I had similar experience when wrote LG for bird.
I don`t have any problems. You can try my code, it is avail at http://bird-lg.subnets.ru/

With best regards, Dmitry S. Nikolaev

Moscow, Russia
phone: +7 (499) 678 8007 [ext. 6003]
fax: +7 (499) 678 8007 [ext. 7777]
www: http://www.mega-net.ru
mail: dnikolaev@mega-net.ru
SIP URI: dnikolaev@sip.mega-net.ru || dn@sip.mega-net.ru
On 12.11.2017 14:47, Oliver Herms wrote:
Hello bird users,

I'm running bird 1.6.3 on ubuntu 16.04 as kind of a route server.
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".
The software keeps the socket open and executes the queries in a loop persisting of a write() call followed by a read() call. 

Now to the problem:
At some point bird resets the connection and the logs are not showing anything related.

Did anyone make similar experiences or can help me to find out what's wrong with bird here?

Thanks
Oliver
--




--
Oliver Herms
oliver.peter.herms@gmail.com
+49 (0) 174 434 155 6