Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Compare Revisions
0ed2c5120ac61523dbffd71366b57f64b8f2a5aa...a7468eaa3752118744bc4a0e23be8bef176b29dd
Commits (1)
Throw more interesting errors when a continuation line read fails
· a7468eaa
Deucе
authored
Apr 09, 2022
a7468eaa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
exec/imapservice.js
exec/imapservice.js
+5
-1
No files found.
exec/imapservice.js
View file @
a7468eaa
...
...
@@ -649,7 +649,7 @@ function handle_command(command, args, defs)
function
parse_command
(
line
)
{
function
execute_line
(
args
)
{
if
(
args
.
length
>=
2
&&
typeof
(
args
[
1
])
==
'
string
'
)
{
if
(
args
.
length
>=
2
)
{
command
=
args
[
1
].
toUpperCase
();
args
.
splice
(
1
,
1
);
if
(
handle_command
(
command
,
args
,
any_state_command_handlers
))
...
...
@@ -714,6 +714,10 @@ function parse_command(line)
var
len
=
parseInt
(
line
);
if
(
len
)
{
ret
=
client
.
socket
.
recv
(
len
);
if
(
ret
===
null
)
throw
new
Error
(
'
recv() of
'
+
len
+
'
bytes returned null
'
);
if
(
ret
.
length
!==
len
)
throw
new
Error
(
'
recv() of
'
+
len
+
'
bytes returned a string with
'
+
ret
.
length
+
'
instead.
'
);
line
=
client
.
socket
.
recvline
(
10240
,
1800
);
}
else
{
...
...