Skip to content

node: IPC transport hangs on large responses #39

@ryanschneider

Description

@ryanschneider

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions