Skip to content

Fix incomplete data from xdebug#20

Merged
dfeyer merged 2 commits into
dfeyer:masterfrom
jdoubleu:fix-large-xdebug-chunks
Aug 9, 2018
Merged

Fix incomplete data from xdebug#20
dfeyer merged 2 commits into
dfeyer:masterfrom
jdoubleu:fix-large-xdebug-chunks

Conversation

@jdoubleu

@jdoubleu jdoubleu commented Aug 6, 2018

Copy link
Copy Markdown
Contributor

XDebug sometimes sends large data to the debugproxy.
When the debugproxy tries to read that data from the net.TCPConn not all data is available sometimes, which causes errors by later processing.

Because all message from XDebug are prepended by their body length, I check for each incoming message to fit the expected length.

After implementing the fix I couldn't cause this situation to happen. Maybe because the computation from fix takes a few (nano) seconds so the data is available on the socket (net.TCPConn).

@dfeyer
dfeyer merged commit c199e77 into dfeyer:master Aug 9, 2018
@dfeyer

dfeyer commented Aug 9, 2018

Copy link
Copy Markdown
Owner

Go is too fast ;) thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants