Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cellframe-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
16
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
cellframe
cellframe-sdk
Commits
8df5741e
Commit
8df5741e
authored
1 month ago
by
Constantin P.
💬
Browse files
Options
Downloads
Plain Diff
Merge branch 'hotfix-15105' into 'master'
hotfix-15105 See merge request
!2051
parents
f8e3812b
48937ec8
No related branches found
No related tags found
1 merge request
!2051
hotfix-15105
Pipeline
#50466
passed with stage
Stage: build
in 15 minutes and 38 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/channel/chain-net-srv/dap_stream_ch_chain_net_srv.c
+7
-0
7 additions, 0 deletions
modules/channel/chain-net-srv/dap_stream_ch_chain_net_srv.c
modules/net/dap_chain_node_client.c
+1
-1
1 addition, 1 deletion
modules/net/dap_chain_node_client.c
with
8 additions
and
1 deletion
modules/channel/chain-net-srv/dap_stream_ch_chain_net_srv.c
+
7
−
0
View file @
8df5741e
...
...
@@ -1264,6 +1264,13 @@ static bool s_stream_ch_packet_in(dap_stream_ch_t *a_ch, void *a_arg)
return
false
;
}
pkt_test_t
*
l_request
=
(
pkt_test_t
*
)
l_ch_pkt
->
data
;
if
(
dap_chain_net_srv_get
(
l_request
->
srv_uid
)
==
NULL
){
log_it
(
L_WARNING
,
"Can't find service with id %"
DAP_UINT64_FORMAT_U
,
l_request
->
srv_uid
);
l_err
.
code
=
DAP_STREAM_CH_CHAIN_NET_SRV_PKT_TYPE_RESPONSE_ERROR_CODE_SERVICE_NOT_FOUND
;
dap_stream_ch_pkt_write_unsafe
(
a_ch
,
DAP_STREAM_CH_CHAIN_NET_SRV_PKT_TYPE_RESPONSE_ERROR_CODE_SERVICE_NOT_FOUND
,
&
l_err
,
sizeof
(
l_err
));
return
false
;
}
if
(
l_request
->
data_size_recv
>
DAP_CHAIN_NET_SRV_CH_REQUEST_SIZE_MAX
||
l_request
->
data_size
>
DAP_CHAIN_NET_SRV_CH_REQUEST_SIZE_MAX
)
{
log_it
(
L_WARNING
,
"Too large payload %zu [pkt seq %"
DAP_UINT64_FORMAT_U
"]"
,
l_request
->
data_size_recv
,
l_ch_pkt
->
hdr
.
seq_id
);
l_err
.
code
=
DAP_STREAM_CH_CHAIN_NET_SRV_PKT_TYPE_RESPONSE_ERROR_CODE_BIG_SIZE
;
...
...
This diff is collapsed.
Click to expand it.
modules/net/dap_chain_node_client.c
+
1
−
1
View file @
8df5741e
...
...
@@ -331,7 +331,7 @@ void dap_chain_node_client_close_unsafe(dap_chain_node_client_t *a_node_client)
if
(
a_node_client
->
reconnect_timer
)
dap_timerfd_delete_mt
(
a_node_client
->
reconnect_timer
->
worker
,
a_node_client
->
reconnect_timer
->
esocket_uuid
);
if
(
a_node_client
->
callbacks
.
delete
)
a_node_client
->
callbacks
.
delete
(
a_node_client
,
a_node_client
->
net
);
a_node_client
->
callbacks
.
delete
(
a_node_client
,
a_node_client
->
callbacks_arg
);
if
(
a_node_client
->
stream_worker
)
{
dap_stream_ch_t
*
l_ch
=
dap_stream_ch_find_by_uuid_unsafe
(
a_node_client
->
stream_worker
,
a_node_client
->
ch_chain_net_uuid
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment