Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
442bead4
Commit
442bead4
authored
8 years ago
by
Jan Tattermusch
Browse files
Options
Downloads
Plain Diff
Merge pull request #5701 from bluecmd/unix-socket
Allow directly specifiying connection path
parents
5a779537
e73e9e1a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/python/grpcio/grpc/beta/implementations.py
+6
-3
6 additions, 3 deletions
src/python/grpcio/grpc/beta/implementations.py
with
6 additions
and
3 deletions
src/python/grpcio/grpc/beta/implementations.py
+
6
−
3
View file @
442bead4
# Copyright 2015, Google Inc.
# Copyright 2015
-2016
, Google Inc.
# All rights reserved.
# All rights reserved.
#
#
# Redistribution and use in source and binary forms, with or without
# Redistribution and use in source and binary forms, with or without
...
@@ -188,12 +188,13 @@ def insecure_channel(host, port):
...
@@ -188,12 +188,13 @@ def insecure_channel(host, port):
Args:
Args:
host: The name of the remote host to which to connect.
host: The name of the remote host to which to connect.
port: The port of the remote host to which to connect.
port: The port of the remote host to which to connect.
If None only the
'
host
'
part will be used.
Returns:
Returns:
A Channel to the remote host through which RPCs may be conducted.
A Channel to the remote host through which RPCs may be conducted.
"""
"""
intermediary_low_channel
=
_intermediary_low
.
Channel
(
intermediary_low_channel
=
_intermediary_low
.
Channel
(
'
%s:%d
'
%
(
host
,
port
),
None
)
'
%s:%d
'
%
(
host
,
port
)
if
port
else
host
,
None
)
return
Channel
(
intermediary_low_channel
.
_internal
,
intermediary_low_channel
)
# pylint: disable=protected-access
return
Channel
(
intermediary_low_channel
.
_internal
,
intermediary_low_channel
)
# pylint: disable=protected-access
...
@@ -203,13 +204,15 @@ def secure_channel(host, port, channel_credentials):
...
@@ -203,13 +204,15 @@ def secure_channel(host, port, channel_credentials):
Args:
Args:
host: The name of the remote host to which to connect.
host: The name of the remote host to which to connect.
port: The port of the remote host to which to connect.
port: The port of the remote host to which to connect.
If None only the
'
host
'
part will be used.
channel_credentials: A ChannelCredentials.
channel_credentials: A ChannelCredentials.
Returns:
Returns:
A secure Channel to the remote host through which RPCs may be conducted.
A secure Channel to the remote host through which RPCs may be conducted.
"""
"""
intermediary_low_channel
=
_intermediary_low
.
Channel
(
intermediary_low_channel
=
_intermediary_low
.
Channel
(
'
%s:%d
'
%
(
host
,
port
),
channel_credentials
.
_low_credentials
)
'
%s:%d
'
%
(
host
,
port
)
if
port
else
host
,
channel_credentials
.
_low_credentials
)
return
Channel
(
intermediary_low_channel
.
_internal
,
intermediary_low_channel
)
# pylint: disable=protected-access
return
Channel
(
intermediary_low_channel
.
_internal
,
intermediary_low_channel
)
# pylint: disable=protected-access
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment