Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
b2291f98
...
b2291f9867971c78193eff58135f190dfd93818f
authored
2003-01-29 13:05:19 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Do not wait for 'DONE' command longer than timeout seconds.
1 parent
a2868695
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
imap4d/idle.c
imap4d/idle.c
View file @
b2291f9
...
...
@@ -21,6 +21,7 @@ int
imap4d_idle
(
struct
imap4d_command
*
command
,
char
*
arg
)
{
char
*
sp
;
time_t
start
;
if
(
util_getword
(
arg
,
&
sp
))
return
util_finish
(
command
,
RESP_BAD
,
"Too many args"
);
...
...
@@ -31,6 +32,7 @@ imap4d_idle (struct imap4d_command *command, char *arg)
util_send
(
"+ idling
\r\n
"
);
util_flush_output
();
start
=
time
(
NULL
);
while
(
1
)
{
if
(
util_wait_input
(
5
))
...
...
@@ -46,6 +48,8 @@ imap4d_idle (struct imap4d_command *command, char *arg)
if
(
rc
)
break
;
}
else
if
(
time
(
NULL
)
-
start
>
daemon_param
.
timeout
)
imap4d_bye
(
ERR_TIMEOUT
);
imap4d_sync
();
util_flush_output
();
...
...
Please
register
or
sign in
to post a comment