D12230: [WIP] Adjust socket buffer sizes on FreeBSD
Adriaan de Groot
noreply at phabricator.kde.org
Sun Apr 15 20:21:42 BST 2018
adridg created this revision.
adridg added a reviewer: dvratil.
Restricted Application added a project: KDE PIM.
Restricted Application added a subscriber: KDE PIM.
adridg requested review of this revision.
REVISION SUMMARY
The default socket buffer size on FreeBSD is 8192, while it is much
larger on Linux. It seems that the small socket buffer is what causes
the "world is going to end" problems with communicating over the local
sockets with Akonadi.
There are two approaches possible:
- change the system default socket buffer size (there's a sysctl for it)
- change the socket buffer size for Akonadi
This -- right now still kinda hacky and debuggerish -- patch changes the
socket size on connect and on creation, for Akonadi clients and the server.
It uses 64kibyte socket buffers.
TEST PLAN
With this patch, "akonadictl start" no longer complains about the world
ending. KMail can connect to the Akonadi server and read more than one
mailbox. Without the patch, changing the system default socket buffer
size does it, too.
REPOSITORY
R165 Akonadi
BRANCH
freebsd-socketsize
REVISION DETAIL
https://phabricator.kde.org/D12230
AFFECTED FILES
src/core/connection.cpp
src/server/aklocalserver.cpp
src/server/aklocalserver.h
src/server/connection.cpp
To: adridg, dvratil
Cc: tcberner, #kde_pim, dvasin, winterz, vkrause, mlaurent, knauss, dvratil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20180415/8b00bca9/attachment.html>
More information about the kde-pim
mailing list