-
Notifications
You must be signed in to change notification settings - Fork 35
node: IPC transport hangs on large responses #39
Copy link
Copy link
Open
Labels
good first issueGood for newcomersGood for newcomers
Description
Line 18 in 61f7907
| scanner := bufio.NewScanner(conn) |
For example this code pointed to a yolov3x node never returns from BlockByNumber:
func main() {
ctx := context.Background()
url := "~/Library/Ethereum/yolo-v3/geth.ipc"
client, err := node.NewClient(ctx, url)
if err != nil {
panic(err)
}
start := uint64(0x3ede)
log.Printf("[WARN] start: %d", start)
block, err := client.BlockByNumber(ctx, start, true)
if err != nil {
panic(err)
} else {
log.Printf("[INFO] block: %#v", *block)
}
}Haven't full debugged it but my guess is either the scanner fails and we don't handle the error correctly or the scanner hangs.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomers