Skip to content

Issue with php crash on the same server with tarantool #103

@arthurkushman

Description

@arthurkushman

The error:
2016/09/02 10:33:19 [error] 103403#0: *94 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: x.x.x.x, server: xxx.com, request: "POST /oauth2/token HTTP/1.1", upstream: "fastcgi://127.0.0.1:9007", host: "xxx.com"

The code:

    public function checkUserCredentials($username, $password)
    {
        $user = $this->connection->select($this->config['user_key'], $username)[0][1];
//        print_r($user);die;
// if printing with die; - ok, result:
// Array
// (
//    [username] => testuser
//    [password] => xxx
//    [first_name] => First
//    [last_name] => Last
//)
// if trying to return any value with taking data from Tarantool - code fails, 
// otherwise - if trying to return without taking data from Tarantool code works ok. 
//        return (bool) (!empty($user) && $user['password'] === $password);
        return true;
    }

The error is stable.

Server configuration:

CentOS 7.2.x
// ---------
PHP 7.0.10 (cli) (built: Aug 31 2016 18:07:34) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.10, Copyright (c) 1999-2016, by Zend Technologies
// ---------- 
tarantool: version 1.6.8-530-g9c48ea8
// ----------
branch of php-tarantool extension, php7-v1

Hope You can find the solution soon, Your mates from TASS, Russia/Moscow - thx.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions