Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
system
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
_site-res
system
Commits
f35ef203
Commit
f35ef203
authored
Aug 29, 2018
by
tufengqi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除无效配置
parent
4f1388c7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
23 deletions
+0
-23
ThriftAsyncServiceFactoryProxy.php
classes/fpf/thrift/ThriftAsyncServiceFactoryProxy.php
+0
-1
thrift_service.php
config/thrift_service.php
+0
-22
No files found.
classes/fpf/thrift/ThriftAsyncServiceFactoryProxy.php
View file @
f35ef203
...
...
@@ -30,7 +30,6 @@ class ThriftAsyncServiceFactoryProxy
{
$service_default_protocol
=
Yii
::
$app
->
fpf
->
getConfig
(
'service_default_protocol'
,
'thrift_service'
);
$service_default_hosts
=
Yii
::
$app
->
fpf
->
getConfig
(
'service_default_hosts'
,
'thrift_service'
);
$service_default_failure_policy
=
Yii
::
$app
->
fpf
->
getConfig
(
'service_default_failure_policy'
,
'thrift_service'
);
$service_module_hosts
=
Yii
::
$app
->
fpf
->
getConfig
(
'service_module_hosts'
,
'thrift_service'
);
$check_ret
=
$this
->
checkService
(
$class_name
);
if
(
true
===
$check_ret
[
BaseConstant
::
ERROR
])
{
...
...
config/thrift_service.php
deleted
100644 → 0
View file @
4f1388c7
<?php
$service_domain_name
=
'service.local.zhaobi.com'
;
//$service_domain_name = 'service.local.zhaobi.com';
//$service_domain_name = 'service.zhaobi.com';
$config
[
'service_default_protocol'
]
=
0
;
// 0:binary 1:json
$config
[
'service_default_hosts'
]
=
[
[
'host'
=>
$service_domain_name
,
'port'
=>
80
,
'timeout'
=>
10
,
// ms
'connect_timeout'
=>
100
,
// ms
'protocol'
=>
0
],
];
$config
[
'service_default_failure_policy'
]
=
[
'default_connect_timeout'
=>
1000
,
// ms
'default_request_timeout'
=>
2000
,
// ms
'descending_factor'
=>
'0.5'
,
// 递减因子 每次重试connect_timeout request_timeout超时时间再默认基础上减半
'failover_retry_times'
=>
2
,
'final_fail_return'
=>
'false'
,
// false or exception, 返回false或者抛异常
];
$config
[
'service_module_hosts'
][
'market-BaseMarketService'
]
=
$config
[
'service_default_hosts'
];
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment