Bug 256478 - mail/cyrus-imap34 NOTIFY(EVENT): datagram too large
Summary: mail/cyrus-imap34 NOTIFY(EVENT): datagram too large
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Hajimu UMEMOTO
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-08 10:22 UTC by Jesper Schmitz Mouridsen
Modified: 2021-06-08 10:22 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesper Schmitz Mouridsen freebsd_committer 2021-06-08 10:22:08 UTC
Hi
Using notifyd you get NOTIFY(EVENT): datagram too large 
when using notifyd 

It is bececase net.local.dgram.maxdgram is smaller than on linux default is 2048 so you get a bufsiz of 204-32=172 most events are bigger. so add_arg fails here:

if (*buflen + len > max_size) return -1;


(max_size is bufsiz)


a Workaround is to set sysctl net.local.dgram.maxdgram higher e.g to 655552

But perhaps a patch that does not divide with 10
work-basic/cyrus-imapd-3.4.1/imap/notify.c:223:    bufsiz = MIN(bufsiz / 10 - 32, NOTIFY_MAXSIZE);

work-basic/cyrus-imapd-3.4.1/notifyd/notifyd.c:123:    bufsiz = MIN(bufsiz / 10 - 32, NOTIFY_MAXSIZE); 

Is better?