erigon-pulse/p2p
BitBaseBit 7ed337cdcc
Implemented panic handling, graceful shutdown and reporting for all goroutines that don't explicitly handle them. (#2153)
* implemented crash reporting for all goroutine panics that aren't handled explicitly

* implemented crash reporting for all goroutine panics that aren't handled explicitly

* changed node defaults back to originals after testing

* implemented panic handling for all goroutines that don't explicitly handle them, outputting the stack trace to a file in crashreports

* handling panics on all goroutines gracefully

* updated missing call

* error assignment

* implemented suggestions

* path.Join added

* implemented Evgeny's suggestions

* changed path.Join to filepath.Join for cross-platform

* added err check

* updated RecoverStackTrace to LogPanic

* updated closures

* removed call of common.Go to some goroutines

* updated scope capture

* removed testing files

* reverted back to original method, I feel like its less intrusive

* update filename for clarity
2021-06-13 17:41:39 +01:00
..
discover Implemented panic handling, graceful shutdown and reporting for all goroutines that don't explicitly handle them. (#2153) 2021-06-13 17:41:39 +01:00
dnsdisc rename (#1978) 2021-05-20 19:25:53 +01:00
enode Implemented panic handling, graceful shutdown and reporting for all goroutines that don't explicitly handle them. (#2153) 2021-06-13 17:41:39 +01:00
enr rename (#1978) 2021-05-20 19:25:53 +01:00
nat Implemented panic handling, graceful shutdown and reporting for all goroutines that don't explicitly handle them. (#2153) 2021-06-13 17:41:39 +01:00
netutil rename (#1978) 2021-05-20 19:25:53 +01:00
rlpx rename (#1978) 2021-05-20 19:25:53 +01:00
simulations Drop download.v2 flag (#2039) 2021-05-28 16:32:34 +01:00
dial_test.go rename (#1978) 2021-05-20 19:25:53 +01:00
dial.go Implemented panic handling, graceful shutdown and reporting for all goroutines that don't explicitly handle them. (#2153) 2021-06-13 17:41:39 +01:00
message_test.go p2p: move rlpx into separate package (#21464) 2020-10-06 14:12:09 +02:00
message.go Implemented panic handling, graceful shutdown and reporting for all goroutines that don't explicitly handle them. (#2153) 2021-06-13 17:41:39 +01:00
metrics.go rename (#1978) 2021-05-20 19:25:53 +01:00
peer_error.go p2p: fix some golint warnings (#16577) 2018-05-08 13:08:43 +02:00
peer_test.go rename (#1978) 2021-05-20 19:25:53 +01:00
peer.go Implemented panic handling, graceful shutdown and reporting for all goroutines that don't explicitly handle them. (#2153) 2021-06-13 17:41:39 +01:00
protocol.go rename (#1978) 2021-05-20 19:25:53 +01:00
server_test.go rename (#1978) 2021-05-20 19:25:53 +01:00
server.go Implemented panic handling, graceful shutdown and reporting for all goroutines that don't explicitly handle them. (#2153) 2021-06-13 17:41:39 +01:00
transport_test.go rename (#1978) 2021-05-20 19:25:53 +01:00
transport.go rename (#1978) 2021-05-20 19:25:53 +01:00
util_test.go rename (#1978) 2021-05-20 19:25:53 +01:00
util.go rename (#1978) 2021-05-20 19:25:53 +01:00