Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Cameo
cameo
Commits
607ea042
Commit
607ea042
authored
Mar 23, 2021
by
legoc
Browse files
Added missing timeout in RequestImpl::replyBinary()
parent
636b218c
Changes
4
Hide whitespace changes
Inline
Side-by-side
cameo-api-cpp/CMakeLists.txt
View file @
607ea042
...
...
@@ -2,7 +2,7 @@ if(NOT DEFINED PROJECT_NAME)
cmake_minimum_required
(
VERSION 3.7.2
)
# Project name and version
project
(
cameo VERSION 1.0.
1
LANGUAGES CXX
)
project
(
cameo VERSION 1.0.
2
LANGUAGES CXX
)
endif
()
include
(
GNUInstallDirs
)
...
...
cameo-api-cpp/ChangeLog
View file @
607ea042
1.0.2
-----
* Added missing timeout in RequestImpl::replyBinary().
1.0.1
-----
...
...
cameo-api-cpp/include/cameo.h
View file @
607ea042
...
...
@@ -19,7 +19,7 @@
#define CAMEO_API_VERSION_MAJOR 1
#define CAMEO_API_VERSION_MINOR 0
#define CAMEO_API_VERSION_REVISION
1
#define CAMEO_API_VERSION_REVISION
2
#include "Application.h"
#include "Server.h"
...
...
cameo-api-cpp/src/impl/RequestImpl.cpp
View file @
607ea042
...
...
@@ -58,7 +58,7 @@ bool RequestImpl::replyBinary(const std::string& response) {
request
.
pushInt
(
message
::
RESPONSE
);
// Create a request socket. It is created for each request that could be optimized.
unique_ptr
<
RequestSocketImpl
>
requestSocket
=
m_application
->
createRequestSocket
(
m_requesterEndpoint
);
unique_ptr
<
RequestSocketImpl
>
requestSocket
=
m_application
->
createRequestSocket
(
m_requesterEndpoint
,
m_timeout
);
try
{
requestSocket
->
request
(
request
.
toString
(),
response
);
...
...
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