Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot reconnect to internet after lose connection #6

Open
suntus opened this issue Sep 25, 2017 · 2 comments
Open

Cannot reconnect to internet after lose connection #6

suntus opened this issue Sep 25, 2017 · 2 comments

Comments

@suntus
Copy link

suntus commented Sep 25, 2017

Sorry for my poor English first.
I use wandio to get meta information from internet. But after the connection break(e.g. unplug the network cable) I cannot get data anymore. And it stuck at here:

#0  pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f147122372d in thread_read (state=0x7f14600296f0, buffer=0x50f27000,
    len=1093632) at ior-thread.c:213
#2  0x00007f14712232d2 in refill_buffer (io=0x7f1460029610, len=752) at ior-peek.c:132
#3  peek_read (io=0x7f1460029610, buffer=0x4cda7056, len=752) at ior-peek.c:192

I don't know whether I use wandio correctly or just the feature of it.

@alistairking
Copy link
Contributor

Hi @suntus.

Can you give us some more information about how you are using wandio?

Wandio is usually used as a library -- are you using it from within your own code? or is something else calling wandio (perhaps libtrace or bgpstream).

What type of file are you reading from -- a local file? or a file on a web server? or?

@suntus
Copy link
Author

suntus commented Sep 26, 2017

I saw it in bgpstream, and read from a web server. Most time the bgpstream worked well and got data correctly. Since my network break down somewhile, bgpstream will stop and can't restart.
I don't know how to overcome it. Or just monitor the network data activities of bgpstream and restart it when no coming data for a period of time?

Thx.🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants