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
db74844f
Commit
db74844f
authored
8 years ago
by
Mark D. Roth
Browse files
Options
Downloads
Patches
Plain Diff
Really fix python.
parent
9d76dbe5
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/python/grpcio/grpc/_cython/_cygrpc/grpc.pxi
+12
-3
12 additions, 3 deletions
src/python/grpcio/grpc/_cython/_cygrpc/grpc.pxi
src/python/grpcio/grpc/_cython/_cygrpc/records.pyx.pxi
+2
-2
2 additions, 2 deletions
src/python/grpcio/grpc/_cython/_cygrpc/records.pyx.pxi
with
14 additions
and
5 deletions
src/python/grpcio/grpc/_cython/_cygrpc/grpc.pxi
+
12
−
3
View file @
db74844f
...
...
@@ -279,12 +279,21 @@ cdef extern from "grpc/grpc.h":
ctypedef
struct
grpc_op_data_recv_close_on_server
:
int
*
cancelled
ctypedef
struct
grpc_op_data_send_message
:
grpc_byte_buffer
*
send_message
ctypedef
struct
grpc_op_data_receive_message
:
grpc_byte_buffer
**
receive_message
"
recv_message
"
ctypedef
struct
grpc_op_data_receive_initial_metadata
:
grpc_metadata_array
*
receive_initial_metadata
"
recv_initial_metadata
"
union
grpc_op_data
:
grpc_op_data_send_initial_metadata
send_initial_metadata
grpc_
byte_buffer
*
send_message
grpc_
op_data_send_message
send_message
grpc_op_data_send_status_from_server
send_status_from_server
grpc_
metadata_array
*
receive_initial_metadata
"
recv_initial_metadata
"
grpc_
byte_buffer
**
receive_message
"
recv_message
"
grpc_
op_data_receive_initial_metadata
receive_initial_metadata
"
recv_initial_metadata
"
grpc_
op_data_receive_message
receive_message
"
recv_message
"
grpc_op_data_recv_status_on_client
receive_status_on_client
"
recv_status_on_client
"
grpc_op_data_recv_close_on_server
receive_close_on_server
"
recv_close_on_server
"
...
...
This diff is collapsed.
Click to expand it.
src/python/grpcio/grpc/_cython/_cygrpc/records.pyx.pxi
+
2
−
2
View file @
db74844f
...
...
@@ -639,7 +639,7 @@ def operation_receive_initial_metadata(int flags):
op
.
c_op
.
type
=
GRPC_OP_RECV_INITIAL_METADATA
op
.
c_op
.
flags
=
flags
op
.
_received_metadata
=
Metadata
([])
op
.
c_op
.
data
.
rec
v
_initial_metadata
.
receive_initial_metadata
=
(
op
.
c_op
.
data
.
rec
eive
_initial_metadata
.
receive_initial_metadata
=
(
&
op
.
_received_metadata
.
c_metadata_array
)
op
.
is_valid
=
True
return
op
...
...
@@ -652,7 +652,7 @@ def operation_receive_message(int flags):
# n.b. the c_op.data.receive_message field needs to be deleted by us,
# anyway, so we just let that be handled by the ByteBuffer() we allocated
# the line before.
op
.
c_op
.
data
.
rec
v
_message
.
receive_message
=
(
op
.
c_op
.
data
.
rec
eive
_message
.
receive_message
=
(
&
op
.
_received_message
.
c_byte_buffer
)
op
.
is_valid
=
True
return
op
...
...
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