mirror of
https://github.com/internetee/epp_proxy.git
synced 2025-08-21 06:44:21 +02:00
Reformat code
This commit is contained in:
parent
e867e15ce7
commit
f17613b5f7
1 changed files with 12 additions and 11 deletions
|
@ -156,7 +156,8 @@ read_until_exhausted(Socket, ExpectedLength, Frame) ->
|
|||
binary:part(Frame,
|
||||
{byte_size(Frame), 4 - ExpectedLength});
|
||||
ExpectedLength > byte_size(Frame) ->
|
||||
{ok, NextFrame} = gen_tcp:recv(Socket, 0, ?DefaultTimeout),
|
||||
{ok, NextFrame} = gen_tcp:recv(Socket, 0,
|
||||
?DefaultTimeout),
|
||||
NewFrame = <<Frame/binary, NextFrame/binary>>,
|
||||
read_until_exhausted(Socket, ExpectedLength, NewFrame)
|
||||
end.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue