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
690e010e
Commit
690e010e
authored
9 years ago
by
Tim Emiola
Browse files
Options
Downloads
Plain Diff
Merge pull request #2984 from stanley-cheung/php_fix_timeout_test
php: fix timeout interop test
parents
e710e2bb
c0c9ba9e
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/php/ext/grpc/call.c
+2
-9
2 additions, 9 deletions
src/php/ext/grpc/call.c
src/php/tests/interop/interop_client.php
+1
-1
1 addition, 1 deletion
src/php/tests/interop/interop_client.php
with
3 additions
and
10 deletions
src/php/ext/grpc/call.c
+
2
−
9
View file @
690e010e
...
...
@@ -273,7 +273,6 @@ PHP_METHOD(Call, startBatch) {
grpc_byte_buffer
*
message
;
int
cancelled
;
grpc_call_error
error
;
grpc_event
event
;
zval
*
result
;
char
*
message_str
;
size_t
message_len
;
...
...
@@ -409,14 +408,8 @@ PHP_METHOD(Call, startBatch) {
(
long
)
error
TSRMLS_CC
);
goto
cleanup
;
}
event
=
grpc_completion_queue_pluck
(
completion_queue
,
call
->
wrapped
,
gpr_inf_future
(
GPR_CLOCK_REALTIME
),
NULL
);
if
(
!
event
.
success
)
{
zend_throw_exception
(
spl_ce_LogicException
,
"The batch failed for some reason"
,
1
TSRMLS_CC
);
goto
cleanup
;
}
grpc_completion_queue_pluck
(
completion_queue
,
call
->
wrapped
,
gpr_inf_future
(
GPR_CLOCK_REALTIME
),
NULL
);
for
(
int
i
=
0
;
i
<
op_num
;
i
++
)
{
switch
(
ops
[
i
].
op
)
{
case
GRPC_OP_SEND_INITIAL_METADATA
:
...
...
This diff is collapsed.
Click to expand it.
src/php/tests/interop/interop_client.php
+
1
−
1
View file @
690e010e
...
...
@@ -271,7 +271,7 @@ function cancelAfterFirstResponse($stub) {
}
function
timeoutOnSleepingServer
(
$stub
)
{
$call
=
$stub
->
FullDuplexCall
(
array
(
'timeout'
=>
500
000
));
$call
=
$stub
->
FullDuplexCall
(
array
(
'timeout'
=>
1
000
));
$request
=
new
grpc\testing\StreamingOutputCallRequest
();
$request
->
setResponseType
(
grpc\testing\PayloadType
::
COMPRESSABLE
);
$response_parameters
=
new
grpc\testing\ResponseParameters
();
...
...
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