Skip to content

tcpsock:receive needs stream reading pattern #32

Open
@mike07026

Description

@mike07026

Now tcpsock:receive now support two pattern '_a' and '_l'(default '*l' if pattern is nil), it's quite useful in text-based protocol or open binary protocol(eg. Mysql).

But to deal with non-public protocol, we need stream reading pattern, return anything once socket receives.

For example, we hava a decode library(.so/.dll) privided by others who don't open their protocol, and we need to fill socket data into the library to decode message out. Without steam reading pattern, decode can't be done in efficient way (done by tcpsock:receive(1) loop).

I suggest to add stream reading pattern into tcpsock:receive, especially in stream-lua-nginx-module

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions