achingbrain/php5-akismet

too short time-out

Opened this issue · 0 comments

hi,

in your function

public function send($host, $port, $request, $responseLength = 1160) {
    $response = '';
    $fs = fsockopen($host, $port, $this->errorNumber, $this->errorString, 3);
    ...

the timeout delay of fsockopen seems to be too "short" : I have regulary some exception caused by this timeout.
maybe you should increase it to 5 or 10 (as WordPress Akismet plugin 2.5.6)