Skip to content

example hangs #2

@michaeldesu

Description

@michaeldesu

Hi Andreas, firstly thanks for making this available. I tried your example with the latest server (v5.7.6) and found after the inserts, the example would consistently hang at the SELECT part of the code. I had a look at the cubesql.py, and after some debugging, I believe if you change line 65 from

if( buf.endswith( "}" ) ):
    break 

to

if( buf.endswith( "}" ) or len( buf ) <= 65535 ):
    break

the problem is solved. I believe there is an assumption made the buffer content is at least 64kb long, when in fact it can be shorter, as was the case in the example, it seems. I could be wrong, so I'd be glad if you could please check it out to confirm.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions