livepeer / go-livepeer-basicnet

Basic p2p video streaming for Livepeer
MIT License
18 stars 8 forks source link

Need More Robust Stream Handling #8

Closed ericxtang closed 7 years ago

ericxtang commented 7 years ago

We need to have a more robust way to handle broken streams. This causes many bugs in our network, the simplest one is logged here.

Steps to reproduce:

I0823 20:48:54.864656   13587 basic_network.go:273] Cannot find local broadcaster or relayer for stream: 12209433a695c8bf34ef6a40863cfe7ed64266d876176aee13732293b63ba1637fd2897ef7bab633e89086541fc5b0d6f96c2f350c5d2098448d0b3833ba617be194.  Creating a local relayer, and forwarding along to the network
E0823 20:48:54.886540   13587 basic_stream.go:74] send message encode error for peer 12209433a695c8bf34ef6a40863cfe7ed64266d876176aee13732293b63ba1637fd2: stream closed
E0823 20:48:54.886559   13587 basic_network.go:301] Error relaying subReq to 12209433a695c8bf34ef6a40863cfe7ed64266d876176aee13732293b63ba1637fd2: ErrStream
E0823 20:48:54.886570   13587 basic_network.go:293] Got empty peer from libp2p
E0823 20:49:28.426551   13587 basic_network.go:199] Got error decoding msg: EOF
E0823 20:49:28.426576   13587 basic_network.go:184] Error handling stream: EOF
ericxtang commented 7 years ago

solved by https://github.com/livepeer/go-livepeer-basicnet/pull/9