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

node: IPC transport hangs on large responses #39

Open
ryanschneider opened this issue Feb 16, 2021 · 0 comments
Open

node: IPC transport hangs on large responses #39

ryanschneider opened this issue Feb 16, 2021 · 0 comments
Labels
good first issue Good for newcomers

Comments

@ryanschneider
Copy link
Contributor

ryanschneider commented Feb 16, 2021

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.

@ryanschneider ryanschneider added the good first issue Good for newcomers label Feb 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant