Skip to content

Limitations on 'call' response size in php7-v1 #90

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
zaglex opened this issue Jun 20, 2016 · 2 comments
Closed

Limitations on 'call' response size in php7-v1 #90

zaglex opened this issue Jun 20, 2016 · 2 comments
Assignees
Labels
bug Something isn't working php7

Comments

@zaglex
Copy link

zaglex commented Jun 20, 2016

When I try to return 300 tuples from lua-function, I get "Can't read query from server" and nothing in tarantool log.

P.S.

  1. 200 tuples and less are ok in my case.
  2. Tuples are small enough: 5 nums + table of 0-6 nums
@bigbes
Copy link
Contributor

bigbes commented Jun 20, 2016

Hi! Can you provide a testcase? I can't reproduce it.

@bigbes bigbes added bug Something isn't working php7 labels Jun 20, 2016
@zaglex
Copy link
Author

zaglex commented Jun 21, 2016

This example is little bit artificial, but it is easy to reproduce and it shows the problem:
lua:

function myfetch(count)
    local i = 0
    local result = {}
    while i < count do
        table.insert(result, {1,2,3,4,5,6,7,8,9,10})
        i = i + 1
    end

    return result
end

php:

$count = 1487;
$response = $tarantool->call('myfetch', [$count]);

In my case it works when $count <=1486, but it crashes when $count > 1486.

bigbes added a commit that referenced this issue Jun 22, 2016
@bigbes bigbes closed this as completed Jun 22, 2016
@bigbes bigbes assigned bigbes and unassigned bigbes Jun 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working php7
Projects
None yet
Development

No branches or pull requests

2 participants