Skip to content

bgpstream_record_get_next_elem being sucked and not giving any output #104

@ksalamat

Description

@ksalamat

Hi Alistair,

thanks for the hard work on libbgpstream. I have an issue that is bugging me for a long time.

I want to gather bgp data on long time frame (like 15 days in past). When I run my program everything goes fine for some hours of data (sometime 4 hours of BGP, sometimes even more). But at some (random) point of time bgpstream_record_get_next_elem get blocked and does not return like if it is not receiving data anymore. I have a watchdog timer that is set to 10 min. So the bgpstream_record_get_next_elem can get sucked for more than 10 mins. I am wondering what to do.
One solution would be for me to detect such an event through my watchdog and remake my bgpstream, but as bgpstream_record_get_next_elem is not yielding back I have to kill my thread and rerun it. So would be nice to have a timer inside bgpstream_record_get_next_elem that yield back with an eventual error code.
A second solution would be to figure out why such blocking can happen. Any idea is welcome.

Rgds

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions