[JDEV] Bug? Or not bug?
Thomas Charron
tcharron at ductape.net
Tue Sep 21 09:49:42 CDT 1999
Quoting Ryan Eatmon <reatmon at ti.com>:
> [Mon Sep 20 07:15:00 1999] mod_basic
> "spool_file_failure=/apps/unsupported/jabber/var/reatmon.offline.xml"
> [Tue Sep 21 07:57:02 1999] mod_basic
> "spool_file_failure=/apps/unsupported/jabber/var/reatmon.offline.xml"
> [Tue Sep 21 07:57:06 1999] accept "Too many open files"
> [Tue Sep 21 07:57:06 1999] main "Exiting Jabber Transport"
> The file reatmon.offline.xml exists and has a message in it, I assume
> waiting to be delivered. What does this mean? Is it a bug? If you
> need more information just ask, I'm not sure what all you need to know
> to look into this.
This is becouse of a bug caused by the way we called open to open the files.
chmod the files +rw for the user the transport is running as, and you'll be all
set. It's been fixed, but in the new code, not the old.. I can post the fix
later today for .06. It's a simple 2 line change.
I'm not sure why "Too many open files" happened. Well, I KNOW why it
happened, but the OS is what returned an error when Jabbertransport tried to
call an accept on an incoming connection. jabbertransport simply detected the
error, and printed out the strerror for the error reported by the call.. ;-P
See this snippet:
new = accept(c_count->id, (struct sockaddr *) &sa, &size);
h_err(new, "accept");
Now, h_err is a very simple function..
void h_err(int check, char *err)
{
if (check < 0)
{
syslog(SYSLOG_ERROR, err, strerror(errno));
raise(SIGTERM);
}
}
Thomas Charron
<< Wanted: One decent sig >>
<< Preferably litle used >>
<< and stored in garage. ?>>
More information about the JDev
mailing list