Skip to content

configureHTTP2 methods default read idle timeout is an absolute pain when dealing with androidpublisher service. #3510

@james-lawrence

Description

@james-lawrence

Environment details

  • Programming language: golang
  • OS: linux
  • Language runtime version: 1.25
  • Package version: v0.267.0

Steps to reproduce

		gcpcreds := option.WithCredentialsJSON(envx.Base64([]byte("{}"), _eg.EnvUnsafeGcloudADCB64))
		scopes := option.WithScopes(androidpublisher.AndroidpublisherScope)


		client, endpoint, err := htransport.NewClient(ctx, gcpcreds, dialer, keepalive, scopes)
		if err != nil {
			return err
		}

		service, err := androidpublisher.NewService(ctx, option.WithHTTPClient(client), option.WithEndpoint(endpoint))
		if err != nil {
			return fmt.Errorf("play store init failed: %w", err)
		}

configureHTTP2 hardcodes the timeout to 31 seconds and the client which htransport.NewClient returns is impossible to configure. as a result one has to entirely configure a http client manually, which is awful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions