Skip to content

transport: move to internal to make room for new, public transport API #2212

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

Merged
merged 2 commits into from
Jul 11, 2018

Conversation

dfawley
Copy link
Member

@dfawley dfawley commented Jul 10, 2018

This is a breaking change, but the transport package was never intended for use outside of grpc. Any current users that we are aware of are incorrect or have a preferred alternative.

@dfawley dfawley added the Type: API Change Breaking API changes (experimental APIs only!) label Jul 10, 2018
@dfawley dfawley added this to the 1.14 Release milestone Jul 10, 2018
@@ -19,7 +19,7 @@
// Package transport defines and implements message oriented communication
// channel to complete various transactions (e.g., an RPC). It is meant for
// grpc-internal usage and is not intended to be imported directly by users.
package transport // externally used as import "google.golang.org/grpc/transport"
package transport // externally used as import "google.golang.org/grpc/internal/transport"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we just delete the comment on this line?

@dfawley dfawley force-pushed the internal_transport branch from 74cf340 to bb5d02b Compare July 11, 2018 17:09
@dfawley dfawley merged commit 11b5827 into grpc:master Jul 11, 2018
@dfawley dfawley deleted the internal_transport branch July 11, 2018 18:26
@MaerF0x0
Copy link

MaerF0x0 commented Aug 13, 2018

I forget the name of the laws of APIs, but it goes something like this: Given enough consumers of an API even if not documented/supported someone is depending on it. That was me for the internal/transport

something like:

			if err == transport.ErrConnClosing {
				log.Printf("[ERROR err=%q", err)
				break SomeJump // The transport is closing, afaik this is not a bug
			}

w e'll pin to 1.13 . AFAIK that should have been a major version increment though. (2.0.0)

@menghanl
Copy link
Contributor

@MaerF0x0 transport.ErrConnClosing is never returned by gRPC package, it will be wrapped into a status error. So if you were expecting this error from an RPC, you can safely delete this if condition now.

@damianoneill
Copy link

agree with @MaerF0x0 this is major version increment.

@lock lock bot locked as resolved and limited conversation to collaborators Mar 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Type: API Change Breaking API changes (experimental APIs only!)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants