Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
c64964ea
Unverified
Commit
c64964ea
authored
Aug 11, 2023
by
Samir Halilčević
Committed by
GitHub
Aug 11, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Integrate review feedback
Co-authored-by:
Dominik Charousset
<
dominik@charousset.de
>
parent
8f40da46
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
libcaf_net/caf/net/web_socket/server_factory.hpp
libcaf_net/caf/net/web_socket/server_factory.hpp
+2
-3
libcaf_net/tests/drivers/autobahn.cpp
libcaf_net/tests/drivers/autobahn.cpp
+2
-1
No files found.
libcaf_net/caf/net/web_socket/server_factory.hpp
View file @
c64964ea
...
...
@@ -144,7 +144,7 @@ private:
size_t
max_consecutive_reads_
;
};
/// Specializes @ref connection_factory for custom upper layer implementation.
/// Specializes @ref connection_factory for custom upper layer implementation
s
.
template
<
class
Transport
,
class
MakeApp
>
class
ws_simple_conn_factory
:
public
connection_factory
<
typename
Transport
::
connection_handle
>
{
...
...
@@ -164,8 +164,7 @@ public:
auto
transport
=
Transport
::
make
(
std
::
move
(
conn
),
std
::
move
(
ws
));
transport
->
max_consecutive_reads
(
max_consecutive_reads_
);
transport
->
active_policy
().
accept
();
auto
mgr
=
net
::
socket_manager
::
make
(
mpx
,
std
::
move
(
transport
));
return
mgr
;
return
net
::
socket_manager
::
make
(
mpx
,
std
::
move
(
transport
));
}
private:
...
...
libcaf_net/tests/drivers/autobahn.cpp
View file @
c64964ea
...
...
@@ -113,7 +113,7 @@ int caf_main(caf::actor_system& sys, const config& cfg) {
// Ignore all header fields and accept the connection.
acc
.
accept
();
})
//
When started, run our worker actor
to handle incoming connections.
//
Create instances of our app
to handle incoming connections.
.
start
([]
{
return
web_socket_app
::
make
();
});
// Report any error to the user.
if
(
!
server
)
{
...
...
@@ -121,6 +121,7 @@ int caf_main(caf::actor_system& sys, const config& cfg) {
<<
to_string
(
server
.
error
())
<<
'\n'
;
return
EXIT_FAILURE
;
}
// Wait until the server shuts down.
while
(
server
->
valid
())
{
std
::
this_thread
::
sleep_for
(
1s
);
}
...
...
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