{"record":{"id":"f44890aabbb0aeea","repo":"phalcon/cphalcon","slug":"can-t-connect-to-the-beanstalk-server","errorCode":null,"errorMessage":"Can't connect to the Beanstalk server","messagePattern":"Can't connect to the Beanstalk server","errorType":"exception","errorClass":"Phalcon\\Queue\\Exceptions\\Exception","httpStatus":null,"severity":"error","filePath":"phalcon/Queue/Adapter/Beanstalk/BeanstalkConnection.zep","lineNumber":111,"sourceCode":"        }\n\n        /**\n         * Suppress the connection warning; the failure is handled by the\n         * typeof check below. Zephir has no `@` operator, so error reporting\n         * is toggled around the call instead.\n         */\n        let errorLevel = error_reporting(0);\n\n        if this->persistent {\n            let connection = pfsockopen(this->host, this->port, null, null);\n        } else {\n            let connection = fsockopen(this->host, this->port, null, null);\n        }\n\n        error_reporting(errorLevel);\n\n        if typeof connection != \"resource\" {\n            throw new Exception(\"Can't connect to the Beanstalk server\");\n        }\n\n        stream_set_timeout(connection, -1, 0);\n\n        let this->connection = connection;\n\n        this->restoreSession();\n\n        return connection;\n    }\n\n    /**\n     * Removes a job from the server entirely.\n     */\n    public function deleteJob(string id) -> bool\n    {\n        this->write(\"delete \" . id);\n","sourceCodeStart":93,"sourceCodeEnd":129,"githubUrl":"https://github.com/phalcon/cphalcon/blob/b7419de9cd0a8a3f48441ead84c9f8415d463e25/phalcon/Queue/Adapter/Beanstalk/BeanstalkConnection.zep#L93-L129","documentation":"Error \"Can't connect to the Beanstalk server\" thrown in phalcon/cphalcon.","triggerScenarios":"Thrown at phalcon/Queue/Adapter/Beanstalk/BeanstalkConnection.zep:111 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b7419de9cd0a8a3f48441ead84c9f8415d463e25","analyzedAt":"2026-08-21T06:21:18.811Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}