[dovecot-cvs] dovecot/src/master login-process.c,1.56,1.57
cras at dovecot.org
cras at dovecot.org
Sun Jul 18 05:30:59 EEST 2004
Update of /home/cvs/dovecot/src/master
In directory talvi:/tmp/cvs-serv4085
Modified Files:
login-process.c
Log Message:
Changed default cache fields.
Index: login-process.c
===================================================================
RCS file: /home/cvs/dovecot/src/master/login-process.c,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -d -r1.56 -r1.57
--- login-process.c 16 Jun 2004 02:04:02 -0000 1.56
+++ login-process.c 18 Jul 2004 02:30:56 -0000 1.57
@@ -76,6 +76,7 @@
{
struct login_auth_request *request = context;
struct master_login_reply master_reply;
+ ssize_t ret;
if (reply == NULL || !reply->success)
master_reply.success = FALSE;
@@ -94,9 +95,15 @@
/* reply to login */
master_reply.tag = request->login_tag;
- if (o_stream_send(request->process->output, &master_reply,
- sizeof(master_reply)) < 0)
+ ret = o_stream_send(request->process->output, &master_reply,
+ sizeof(master_reply));
+ if (ret != sizeof(master_reply)) {
+ if (ret >= 0) {
+ i_warning("Login process %s transmit buffer full, "
+ "killing..", dec2str(request->process->pid));
+ }
login_process_destroy(request->process);
+ }
if (close(request->fd) < 0)
i_error("close(mail client) failed: %m");
More information about the dovecot-cvs
mailing list