Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mtproto_proxy
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mtproto_proxy
Commits
22325843
Unverified
Commit
22325843
authored
May 26, 2019
by
Сергей Прохоров
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix handle_cast return value
parent
9b8f382b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
mtp_handler.erl
src/mtp_handler.erl
+5
-4
No files found.
src/mtp_handler.erl
View file @
22325843
...
...
@@ -139,10 +139,11 @@ handle_cast({proxy_ans, Down, ?SRV_ERROR = Data}, #state{down = Down, srv_error_
ok
=
mtp_down_conn
:
ack
(
Down
,
1
,
iolist_size
(
Data
)),
?
log
(
warning
,
"
~s
: protocol_error srv_error_filtered"
,
[
inet
:
ntoa
(
Ip
)]),
mtp_metric
:
count_inc
([
?
APP
,
protocol_error
,
total
],
1
,
#
{
labels
=>
[
srv_error_filtered
]}),
case
Filter
of
first
->
S
#state
{
srv_error_filter
=
off
};
on
->
S
end
;
{
noreply
,
case
Filter
of
first
->
S
#state
{
srv_error_filter
=
off
};
on
->
S
end
};
handle_cast
({
proxy_ans
,
Down
,
Data
},
#state
{
down
=
Down
,
srv_error_filter
=
Filter
}
=
S
)
when
Filter
=/=
off
->
%% telegram server -> proxy
%% Normal data packet
...
...
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