Skip to content

Set connection and total timeouts on every Roundcube request - #83

Open
SAY-5 wants to merge 1 commit into
rotdrop:masterfrom
SAY-5:curl-timeouts
Open

SAY-5 wants to merge 1 commit into
rotdrop:masterfrom
SAY-5:curl-timeouts

Conversation

@SAY-5

@SAY-5 SAY-5 commented Oct 18, 2026

Copy link
Copy Markdown

sendRequest() only set CURLOPT_TIMEOUT inside the POST-with-data branch, so the GET requests used during login and session handling could hold a Nextcloud request open indefinitely when Roundcube accepted the connection but stopped responding, and no request had a connection timeout at all. This moves CURLOPT_TIMEOUT into the common cURL options and adds CURLOPT_CONNECTTIMEOUT so every request to the Roundcube instance is bounded. I did not have a Nextcloud plus Roundcube pair to hang on purpose, so this is verified by reading the request path and with php -l; the values match the ones proposed in the issue.

Fixes #72

Signed-off-by: Sai Asish Y <say.apm35@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AuthRoundCube GET requests have no cURL timeout

1 participant