[Patch] Improve low-level network library, POP3 responsiveness on error
Albrecht Dreß <[email protected]>
| Newsgroups | gmane.comp.gnome.apps.balsa |
|---|---|
| Message-ID | <[email protected]> |
Hi all, attached is a patch which improves the low-level network library, and should improve the responsiveness of POP3 connections on error. For the network library, it introduces two new methods for shutting down the network connection, and for checking the connection status. The unit tests have been fixed, and the testing prerequisite ncat has been replaced by a trivial Python script. For POP3 connections, on error the connection is now terminated without sending the QUIT command, as to avoid a “hanging” connection while waiting for a reply or a timeout to it. As the patch modifies configure.ac, I guess the meson build stuff needs to be modified as well, but unfortunately I don't know how (probably just removing the “sed_program” and “ncat_program” checks?). It would be great if someone with deeper insight could have a look at it. Opinions? Cheers, Albrecht. --- Patch details: - configure.ac: add missing flags and libs for libnetclient unit tests, drop sed and ncat prerequisites - libbalsa/mailbox_pop3.c: shut down the connection on error, so un'refing it does not wait for the QUIT command - libnetclient/Makefile.am: fix log domain - libnetclient/README: update documentation - libnetclient/net-client-pop.c: execute QUIT only if the connection exists - libnetclient/net-client-smtp.c: fix FlexeLint warnings about ignored function return values, execute QUIT only if the connection exists - libnetclient/net-client.[ch]: implement new methods for shutting down the network connection and for checking the connection status - libnetclient/test/Makefile.am: drop sed and ncat requirements, fix test application build error - libnetclient/test/echoserver.py: (new file) trivial echo server in Python - libnetclient/test/start-test-env.sh.in: control the echo server for testing - libnetclient/test/tests.c: improve unit tests _______________________________________________ balsa-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/balsa-list
network_improvements.diff.bz2
(application/x-bzip, 6.8 KB) - not displayed
signature.asc
(application/pgp-signature, 473 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAABCAAGBQJaY1wYAAoJEEypbw5n59n41pYIAMDrFkFOvcGILTeIHkGY8ZiU K3j7jcLEt3eBXUYZwaPdd5cnZ0t6NhvDnjdi/VTtOA+s5dY142NTAQo6PFUF6Mne haQHz/4zR8FNs3Zcsj62ErxzuQafYlrIfkPbaSXUMURjbvvUH2eJJ/OKXB0hvyKu dDGt/58G0VeQheXf+gbVpMC8FlsUtHlZy66z2vF8YGHo4cN2b0BxJHnRjJ+RMSBp LdFG3Kzvi6xFRNL7uWHqJpravrIIoTuNSRNLv1lMxs+JwRxZB6koFf+MQI5HXKDl KLUKOOOLfUND8GkamYj3t8AdpXfGCvhW7vJeKNr2iXCEEC0mAE+Tf7ASF7eXcE8= =CiK2 -----END PGP SIGNATURE-----