Skip to content

Commit d842d81

Browse files
authored
Merge pull request #4440 from esl/wpool-rdbms-probe-error
Fix `probe_failed` error
2 parents 685eea7 + c1d03b8 commit d842d81

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/wpool/mongoose_wpool_rdbms.erl

+2-1
Original file line numberDiff line numberDiff line change
@@ -139,13 +139,14 @@ merge_stats_fun(send_max, V1, V2) ->
139139
merge_stats_fun(_, V1, V2) ->
140140
V1 + V2.
141141

142+
-spec inet_stats(inet:port_number() | undefined) -> [{inet:stat_option(), integer()}].
142143
inet_stats(Port) ->
143144
try
144145
{ok, Stats} = inet:getstat(Port, inet_stats()),
145146
Stats
146147
catch C:R:S ->
147148
?LOG_INFO(#{what => inet_stats_failed, class => C, reason => R, stacktrace => S}),
148-
empty_inet_stats_measurements()
149+
[]
149150
end.
150151

151152
inet_stats() ->

0 commit comments

Comments
 (0)