Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
ftl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Nicolas Pope
ftl
Merge requests
!95
Implements
#156
expose config options
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Implements
#156
expose config options
feature/156/configopt
into
master
Overview
0
Commits
7
Pipelines
1
Changes
4
Merged
Nicolas Pope
requested to merge
feature/156/configopt
into
master
5 years ago
Overview
0
Commits
7
Pipelines
1
Changes
4
Expand
0
0
Merge request reports
Viewing commit
ed7cf66a
Prev
Next
Show latest version
4 files
+
46
−
17
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
ed7cf66a
Allow setting of tcp buffers in config
· ed7cf66a
Nicolas Pope
authored
5 years ago
components/net/cpp/include/ftl/net/universe.hpp
+
10
−
0
Options
@@ -188,6 +188,9 @@ class Universe : public ftl::Configurable {
ftl
::
net
::
callback_t
onError
(
const
std
::
function
<
void
(
ftl
::
net
::
Peer
*
,
const
ftl
::
net
::
Error
&
)
>&
);
void
removeCallback
(
ftl
::
net
::
callback_t
cbid
);
size_t
getSendBufferSize
()
const
{
return
send_size_
;
}
size_t
getRecvBufferSize
()
const
{
return
recv_size_
;
}
private
:
void
_run
();
@@ -220,6 +223,13 @@ class Universe : public ftl::Configurable {
std
::
list
<
ReconnectInfo
>
reconnects_
;
size_t
phase_
;
std
::
list
<
ftl
::
net
::
Peer
*>
garbage_
;
size_t
send_size_
;
size_t
recv_size_
;
double
periodic_time_
;
size_t
reconnect_attempts_
;
// NOTE: Must always be last member
std
::
thread
thread_
;
struct
ConnHandler
{
Loading