Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
brpc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
brpc
Commits
a471da10
Commit
a471da10
authored
Sep 27, 2017
by
gejun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove baidu-specific descriptions from comments
parent
7ed22996
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
5 deletions
+3
-5
http_rpc_protocol.cpp
src/brpc/policy/http_rpc_protocol.cpp
+2
-2
server.h
src/brpc/server.h
+1
-1
lock.h
src/butil/synchronization/lock.h
+0
-1
protobuf_map.h
src/json2pb/protobuf_map.h
+0
-1
No files found.
src/brpc/policy/http_rpc_protocol.cpp
View file @
a471da10
...
@@ -1212,8 +1212,8 @@ void ProcessHttpRequest(InputMessageBase *msg) {
...
@@ -1212,8 +1212,8 @@ void ProcessHttpRequest(InputMessageBase *msg) {
}
}
}
else
if
(
security_mode
)
{
}
else
if
(
security_mode
)
{
cntl
->
SetFailed
(
EPERM
,
"Not allowed to access builtin services, try "
cntl
->
SetFailed
(
EPERM
,
"Not allowed to access builtin services, try "
"ServerOptions.internal_port=%d instead if you're in
side
"
"ServerOptions.internal_port=%d instead if you're in"
"
Baidu's
network"
,
server
->
options
().
internal_port
);
"
internal
network"
,
server
->
options
().
internal_port
);
cntl
->
http_response
().
set_status_code
(
HTTP_STATUS_FORBIDDEN
);
cntl
->
http_response
().
set_status_code
(
HTTP_STATUS_FORBIDDEN
);
return
SendHttpResponse
(
cntl
.
release
(),
server
,
method_status
);
return
SendHttpResponse
(
cntl
.
release
(),
server
,
method_status
);
}
}
...
...
src/brpc/server.h
View file @
a471da10
...
@@ -241,7 +241,7 @@ struct ServerOptions {
...
@@ -241,7 +241,7 @@ struct ServerOptions {
// Provide builtin services at this port rather than the port to Start().
// Provide builtin services at this port rather than the port to Start().
// When your server needs to be accessed from public (including traffic
// When your server needs to be accessed from public (including traffic
// redirected by nginx or other http front-end servers), set this port
// redirected by nginx or other http front-end servers), set this port
// to a port number that's ONLY accessible from
Baidu's
internal network
// to a port number that's ONLY accessible from internal network
// so that you can check out the builtin services from this port while
// so that you can check out the builtin services from this port while
// hiding them from public. Setting this option also enables security
// hiding them from public. Setting this option also enables security
// protection code which we may add constantly.
// protection code which we may add constantly.
...
...
src/butil/synchronization/lock.h
View file @
a471da10
// Baidu RPC - A framework to host and access services throughout Baidu.
// Copyright (c) 2017 Baidu, Inc
// Copyright (c) 2017 Baidu, Inc
// Date: Thu Jan 19 16:19:30 CST 2017
// Date: Thu Jan 19 16:19:30 CST 2017
...
...
src/json2pb/protobuf_map.h
View file @
a471da10
// Baidu RPC - A framework to host and access services throughout Baidu.
// Copyright (c) 2014 Baidu, Inc.
// Copyright (c) 2014 Baidu, Inc.
//
//
// Author: Rujie,Jiang jiangrujie@baidu.com
// Author: Rujie,Jiang jiangrujie@baidu.com
...
...
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