achingbrain / achingbrain/php5-akismet

too short time-out

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
122
Forks
18
PR merge metrics
No merged PRs in 30d

Description

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)

Contributor guide

No contributing guide indexed for this repository

Research direction

Search the PHP source for the public send($host, $port, $request, $responseLength = 1160) function and inspect its fsockopen call. Reproduce or review the timeout behavior, then verify that the selected longer timeout prevents the reported exceptions without breaking the Akismet request flow.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.