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
6f08143e
Commit
6f08143e
authored
Aug 24, 2017
by
gejun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch svn r35149
parent
83d6540d
Hide whitespace changes
Inline
Side-by-side
Showing
33 changed files
with
36 additions
and
32 deletions
+36
-32
Makefile
Makefile
+1
-1
amf.cpp
src/brpc/amf.cpp
+1
-2
hotspots_service.cpp
src/brpc/builtin/hotspots_service.cpp
+1
-0
pprof_service.cpp
src/brpc/builtin/pprof_service.cpp
+1
-0
vlog_service.cpp
src/brpc/builtin/vlog_service.cpp
+1
-0
config.h
src/brpc/config.h
+0
-22
http_message.cpp
src/brpc/details/http_message.cpp
+1
-0
naming_service_thread.cpp
src/brpc/details/naming_service_thread.cpp
+1
-0
rtmp_utils.h
src/brpc/details/rtmp_utils.h
+2
-2
nshead_service.cpp
src/brpc/nshead_service.cpp
+2
-0
partition_channel.cpp
src/brpc/partition_channel.cpp
+1
-0
periodic_naming_service.cpp
src/brpc/periodic_naming_service.cpp
+1
-1
dh.cpp
src/brpc/policy/dh.cpp
+1
-0
domain_naming_service.cpp
src/brpc/policy/domain_naming_service.cpp
+1
-0
file_naming_service.cpp
src/brpc/policy/file_naming_service.cpp
+1
-0
list_naming_service.cpp
src/brpc/policy/list_naming_service.cpp
+1
-0
locality_aware_load_balancer.cpp
src/brpc/policy/locality_aware_load_balancer.cpp
+1
-0
nshead_protocol.cpp
src/brpc/policy/nshead_protocol.cpp
+1
-2
remote_file_naming_service.cpp
src/brpc/policy/remote_file_naming_service.cpp
+1
-0
rtmp_protocol.cpp
src/brpc/policy/rtmp_protocol.cpp
+1
-0
streaming_rpc_protocol.cpp
src/brpc/policy/streaming_rpc_protocol.cpp
+2
-1
redis_command.cpp
src/brpc/redis_command.cpp
+1
-0
restful.cpp
src/brpc/restful.cpp
+1
-0
rpc_dump.cpp
src/brpc/rpc_dump.cpp
+1
-0
rtmp.cpp
src/brpc/rtmp.cpp
+1
-0
server.cpp
src/brpc/server.cpp
+1
-0
socket.cpp
src/brpc/socket.cpp
+1
-0
socket_map.cpp
src/brpc/socket_map.cpp
+1
-0
stream.cpp
src/brpc/stream.cpp
+1
-0
trackme.cpp
src/brpc/trackme.cpp
+1
-0
ts.cpp
src/brpc/ts.cpp
+2
-1
uri.cpp
src/brpc/uri.cpp
+1
-0
brpc_socket_unittest.cpp
test/brpc_socket_unittest.cpp
+1
-0
No files found.
Makefile
View file @
6f08143e
...
...
@@ -7,7 +7,7 @@ include config.mk
# 3. Removed -Werror: Not block compilation for non-vital warnings, especially when the
# code is tested on newer systems. If the code is used in production, add -Werror back
CPPFLAGS
=
-DBTHREAD_USE_FAST_PTHREAD_MUTEX
-D__const__
=
-D_GNU_SOURCE
-DUSE_SYMBOLIZE
-DNO_TCMALLOC
-D__STDC_FORMAT_MACROS
-D__STDC_LIMIT_MACROS
-D__STDC_CONSTANT_MACROS
-DBRPC_REVISION
=
\"
$(
shell
git rev-parse
--short
HEAD
)
\"
CXXFLAGS
=
$(CPPFLAGS)
-g
-O2
-pipe
-Wall
-W
-fPIC
-fstrict-aliasing
-Wno-invalid-offsetof
-Wno-unused-parameter
-fno-omit-frame-pointer
-std
=
c++0x
-include
brpc/config.h
CXXFLAGS
=
$(CPPFLAGS)
-g
-O2
-pipe
-Wall
-W
-fPIC
-fstrict-aliasing
-Wno-invalid-offsetof
-Wno-unused-parameter
-fno-omit-frame-pointer
-std
=
c++0x
CFLAGS
=
$(CPPFLAGS)
-g
-O2
-pipe
-Wall
-W
-fPIC
-fstrict-aliasing
-Wno-unused-parameter
-fno-omit-frame-pointer
HDRPATHS
=
-I
./src
$
(
addprefix
-I
,
$(HDRS)
)
LIBPATHS
=
$
(
addprefix
-L
,
$(LIBS)
)
...
...
src/brpc/amf.cpp
View file @
6f08143e
...
...
@@ -8,9 +8,8 @@
#include "base/sys_byteorder.h"
#include "base/logging.h"
#include "base/find_cstr.h"
#include "brpc/log.h"
#include "brpc/amf.h"
#include "brpc/config.h"
namespace
brpc
{
...
...
src/brpc/builtin/hotspots_service.cpp
View file @
6f08143e
...
...
@@ -8,6 +8,7 @@
#include <gflags/gflags.h>
#include "base/files/file_enumerator.h"
#include "base/file_util.h" // base::FilePath
#include "brpc/log.h"
#include "brpc/controller.h"
#include "brpc/server.h"
#include "brpc/reloadable_flags.h"
...
...
src/brpc/builtin/pprof_service.cpp
View file @
6f08143e
...
...
@@ -15,6 +15,7 @@
#include "base/file_util.h" // base::FilePath
#include "base/files/scoped_file.h" // ScopedFILE
#include "base/time.h"
#include "brpc/log.h"
#include "brpc/controller.h" // Controller
#include "brpc/closure_guard.h" // ClosureGuard
#include "brpc/builtin/pprof_service.h"
...
...
src/brpc/builtin/vlog_service.cpp
View file @
6f08143e
...
...
@@ -4,6 +4,7 @@
// Author: The baidu-rpc authors (pbrpc@baidu.com)
// Date: 2014/11/06 15:28:43
#include "brpc/log.h"
#include "brpc/controller.h" // Controller
#include "brpc/closure_guard.h" // ClosureGuard
#include "brpc/builtin/vlog_service.h"
...
...
src/brpc/config.h
deleted
100644 → 0
View file @
83d6540d
// Baidu RPC - A framework to host and access services throughout Baidu.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved
// Author: The baidu-rpc authors (pbrpc@baidu.com)
// Date: Sun Sep 14 22:53:17 CST 2014
#ifndef BRPC_CONFIG_H
#define BRPC_CONFIG_H
#include <inttypes.h> // PRId64 PRIu64
//#define BRPC_SOCKET_HAS_EOF
//#define BRPC_ADDITIONAL_EPOLL
#define RPC_VLOG_LEVEL 99
#define RPC_VLOG_IS_ON VLOG_IS_ON(RPC_VLOG_LEVEL)
#define RPC_VLOG VLOG(RPC_VLOG_LEVEL)
#define RPC_VPLOG VPLOG(RPC_VLOG_LEVEL)
#define RPC_VLOG_IF(cond) VLOG_IF(RPC_VLOG_LEVEL, (cond))
#define RPC_VPLOG_IF(cond) VPLOG_IF(RPC_VLOG_LEVEL, (cond))
#endif // BRPC_CONFIG_H
src/brpc/details/http_message.cpp
View file @
6f08143e
...
...
@@ -15,6 +15,7 @@
#include "base/endpoint.h"
#include "base/base64.h"
#include "bthread/bthread.h" // bthread_usleep
#include "brpc/log.h"
#include "brpc/reloadable_flags.h"
#include "brpc/details/http_message.h"
...
...
src/brpc/details/naming_service_thread.cpp
View file @
6f08143e
...
...
@@ -10,6 +10,7 @@
#include "bthread/butex.h"
#include "base/scoped_lock.h"
#include "base/logging.h"
#include "brpc/log.h"
#include "brpc/socket_map.h"
#include "brpc/details/naming_service_thread.h"
...
...
src/brpc/details/rtmp_utils.h
View file @
6f08143e
...
...
@@ -7,8 +7,8 @@
#ifndef BRPC_DETAILS_RTMP_UTILS_H
#define BRPC_DETAILS_RTMP_UTILS_H
#include <stdint.h>
#include <
cstddef>
#include <stdint.h>
// int32_t
#include <
stddef.h> // size_t
namespace
brpc
{
...
...
src/brpc/nshead_service.cpp
View file @
6f08143e
...
...
@@ -11,6 +11,8 @@
namespace
brpc
{
BAIDU_CASSERT
(
sizeof
(
nshead_t
)
==
36
,
sizeof_nshead_must_be_36
);
NsheadService
::
NsheadService
()
:
_additional_space
(
0
)
{
_status
=
new
(
std
::
nothrow
)
MethodStatus
;
LOG_IF
(
FATAL
,
_status
==
NULL
)
<<
"Fail to new MethodStatus"
;
...
...
src/brpc/partition_channel.cpp
View file @
6f08143e
...
...
@@ -5,6 +5,7 @@
// Date: Fri Sep 4 00:11:10 CST 2015
#include "base/containers/flat_map.h"
#include "brpc/log.h"
#include "brpc/load_balancer.h"
#include "brpc/details/naming_service_thread.h"
#include "brpc/partition_channel.h"
...
...
src/brpc/periodic_naming_service.cpp
View file @
6f08143e
...
...
@@ -7,10 +7,10 @@
#include <gflags/gflags.h>
#include "base/logging.h"
#include "bthread/bthread.h"
#include "brpc/log.h"
#include "brpc/reloadable_flags.h"
#include "brpc/periodic_naming_service.h"
namespace
brpc
{
DEFINE_int32
(
ns_access_interval
,
5
,
...
...
src/brpc/policy/dh.cpp
View file @
6f08143e
...
...
@@ -23,6 +23,7 @@
#include "base/logging.h"
#include "base/ssl_compat.h"
#include "brpc/log.h"
#include "brpc/policy/dh.h"
namespace
brpc
{
...
...
src/brpc/policy/domain_naming_service.cpp
View file @
6f08143e
...
...
@@ -8,6 +8,7 @@
#include <stdlib.h> // strtol
#include <string> // std::string
#include "bthread/bthread.h"
#include "brpc/log.h"
#include "brpc/policy/domain_naming_service.h"
...
...
src/brpc/policy/file_naming_service.cpp
View file @
6f08143e
...
...
@@ -10,6 +10,7 @@
#include "base/files/file_watcher.h" // FileWatcher
#include "base/files/scoped_file.h" // ScopedFILE
#include "bthread/bthread.h" // bthread_usleep
#include "brpc/log.h"
#include "brpc/policy/file_naming_service.h"
...
...
src/brpc/policy/list_naming_service.cpp
View file @
6f08143e
...
...
@@ -8,6 +8,7 @@
#include <string> // std::string
#include <set> // std::set
#include "base/string_splitter.h" // StringSplitter
#include "brpc/log.h"
#include "brpc/policy/list_naming_service.h"
...
...
src/brpc/policy/locality_aware_load_balancer.cpp
View file @
6f08143e
...
...
@@ -8,6 +8,7 @@
#include <gflags/gflags.h>
#include "base/time.h" // gettimeofday_us
#include "base/fast_rand.h"
#include "brpc/log.h"
#include "brpc/socket.h"
#include "brpc/reloadable_flags.h"
#include "brpc/policy/locality_aware_load_balancer.h"
...
...
src/brpc/policy/nshead_protocol.cpp
View file @
6f08143e
...
...
@@ -7,10 +7,9 @@
#include <google/protobuf/descriptor.h> // MethodDescriptor
#include <google/protobuf/message.h> // Message
#include <gflags/gflags.h>
#include "base/time.h"
#include "base/iobuf.h" // base::IOBuf
#include "brpc/log.h"
#include "brpc/controller.h" // Controller
#include "brpc/socket.h" // Socket
#include "brpc/server.h" // Server
...
...
src/brpc/policy/remote_file_naming_service.cpp
View file @
6f08143e
...
...
@@ -10,6 +10,7 @@
#include <set> // std::set
#include "bthread/bthread.h" // bthread_usleep
#include "base/iobuf.h"
#include "brpc/log.h"
#include "brpc/channel.h"
#include "brpc/policy/remote_file_naming_service.h"
...
...
src/brpc/policy/rtmp_protocol.cpp
View file @
6f08143e
...
...
@@ -10,6 +10,7 @@
#include "base/scoped_lock.h"
#include "base/fast_rand.h"
#include "base/sys_byteorder.h"
#include "brpc/log.h"
#include "brpc/server.h"
#include "brpc/details/controller_private_accessor.h"
#include "brpc/details/server_private_accessor.h"
...
...
src/brpc/policy/streaming_rpc_protocol.cpp
View file @
6f08143e
...
...
@@ -14,8 +14,9 @@
#include "base/time.h"
#include "base/iobuf.h" // base::IOBuf
#include "base/raw_pack.h" // RawPacker RawUnpacker
#include "brpc/
streaming_rpc_meta.pb.h" // StreamFrameMeta
#include "brpc/
log.h"
#include "brpc/socket.h" // Socket
#include "brpc/streaming_rpc_meta.pb.h" // StreamFrameMeta
#include "brpc/policy/most_common_message.h"
#include "brpc/stream_impl.h"
...
...
src/brpc/redis_command.cpp
View file @
6f08143e
...
...
@@ -5,6 +5,7 @@
// Date: Fri Jun 5 18:25:40 CST 2015
#include "base/logging.h"
#include "brpc/log.h"
#include "brpc/redis_command.h"
// Defined in public/iobuf/base/iobuf.cpp
...
...
src/brpc/restful.cpp
View file @
6f08143e
...
...
@@ -5,6 +5,7 @@
// Date: 2016-02-27 15:33:29
#include <google/protobuf/descriptor.h>
#include "brpc/log.h"
#include "brpc/restful.h"
#include "brpc/details/method_status.h"
...
...
src/brpc/rpc_dump.cpp
View file @
6f08143e
...
...
@@ -12,6 +12,7 @@
#include "base/fast_rand.h"
#include "base/files/file_enumerator.h"
#include "bvar/bvar.h"
#include "brpc/log.h"
#include "brpc/reloadable_flags.h"
#include "brpc/rpc_dump.h"
#include "brpc/protocol.h"
...
...
src/brpc/rtmp.cpp
View file @
6f08143e
...
...
@@ -7,6 +7,7 @@
#include <gflags/gflags.h>
#include <google/protobuf/io/zero_copy_stream_impl_lite.h> // StringOutputStream
#include "bthread/unstable.h" // bthread_timer_del
#include "brpc/log.h"
#include "brpc/callback.h" // Closure
#include "brpc/channel.h" // Channel
#include "brpc/socket_map.h" // SocketMap
...
...
src/brpc/server.cpp
View file @
6f08143e
...
...
@@ -19,6 +19,7 @@
#include "base/time.h"
#include "base/class_name.h"
#include "base/string_printf.h"
#include "brpc/log.h"
#include "brpc/compress.h"
#include "brpc/policy/nova_pbrpc_protocol.h"
#include "brpc/global.h"
...
...
src/brpc/socket.cpp
View file @
6f08143e
...
...
@@ -18,6 +18,7 @@
#include "base/macros.h"
#include "base/class_name.h" // base::class_name
#include "bvar/bvar.h"
#include "brpc/log.h"
#include "brpc/reloadable_flags.h" // BRPC_VALIDATE_GFLAG
#include "brpc/errno.pb.h"
#include "brpc/event_dispatcher.h" // RemoveConsumer
...
...
src/brpc/socket_map.cpp
View file @
6f08143e
...
...
@@ -9,6 +9,7 @@
#include "base/time.h"
#include "base/scoped_lock.h"
#include "base/logging.h"
#include "brpc/log.h"
#include "brpc/protocol.h"
#include "brpc/input_messenger.h"
#include "brpc/reloadable_flags.h"
...
...
src/brpc/stream.cpp
View file @
6f08143e
...
...
@@ -11,6 +11,7 @@
#include "base/object_pool.h"
#include "base/unique_ptr.h"
#include "bthread/unstable.h"
#include "brpc/log.h"
#include "brpc/socket.h"
#include "brpc/controller.h"
#include "brpc/input_messenger.h"
...
...
src/brpc/trackme.cpp
View file @
6f08143e
...
...
@@ -12,6 +12,7 @@
#include <sys/types.h>
#include <pwd.h>
#include "base/fast_rand.h"
#include "brpc/log.h"
#include "brpc/channel.h"
#include "brpc/trackme.pb.h"
#include "brpc/policy/hasher.h"
...
...
src/brpc/ts.cpp
View file @
6f08143e
...
...
@@ -4,8 +4,9 @@
// Author: The baidu-rpc authors (pbrpc@baidu.com)
// Date: Wed Sep 21 17:25:56 CST 2016
#include "brpc/
ts
.h"
#include "brpc/
log
.h"
#include "brpc/policy/rtmp_protocol.h"
#include "brpc/ts.h"
namespace
brpc
{
...
...
src/brpc/uri.cpp
View file @
6f08143e
...
...
@@ -4,6 +4,7 @@
// Author: The baidu-rpc authors (pbrpc@baidu.com)
// Date 2014/10/27 10:31:51
#include "brpc/log.h"
#include "brpc/details/http_parser.h" // http_parser_parse_url
#include "brpc/uri.h" // URI
...
...
test/brpc_socket_unittest.cpp
View file @
6f08143e
...
...
@@ -20,6 +20,7 @@
#include "brpc/acceptor.h"
#include "brpc/policy/hulu_pbrpc_protocol.h"
#include "brpc/policy/most_common_message.h"
#include "brpc/nshead.h"
#define CONNECT_IN_KEEPWRITE 1;
...
...
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