Skip to content

proxy forgets queued messages before debugee connects, when luade-bug listens for incoming debuggee connections #344

@vvvrrooomm

Description

@vvvrrooomm

.. at least I think it does.
So when using lua debug as a proxy waiting for a remote lua debuggee, with a config like e.g.

{
     "type": "lua",
      "request": "attach",
      "client": false,
      "address": "127.0.0.1:32000",
}

the debuggee connected to the lua-debug proxy, and then nothing happened.
I think it is due to missing code in extension/script/common/socket.lua#L88
For the other cases, when lua-debug connects to the debuggee, around line 71-75 queued messages are sent to the new connection. The equivalent is missing in lines 88 and following. Inserting lines 71-75 at line 88, leads to the behavior I expect for my debuggee, but I'm not entirely sure this the correct behavior in general?

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