Akismet and persistent connections

Sunday, 24. February 2008 23:10 - daniel - Blogs - 0 Comments

The delays that sometimes occurred when submitting comments are apparently caused by an incorrect implementation of an HTTP/1.1 socket in the Aksimet PHP5 class. The class didn't send a Connection: Close header to the Akismet server. The Server was keeping the connection open and delayed future request. By either switching to HTTP/1.0 (doesn't support persistent connections) or sending a Connection: Close header that problem is solved.

This also affected my Akismet plugin for yabs. There is already a updated version online, just override the old files and upgrade in the admin panel.

Akismet 1.0.2

Thanks to Jan who found this problem.