Skip to content
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

Reading on a pipe might give some weird result #9

Open
antogerva opened this issue May 25, 2013 · 0 comments
Open

Reading on a pipe might give some weird result #9

antogerva opened this issue May 25, 2013 · 0 comments

Comments

@antogerva
Copy link

I did a couple of test and so far, I feel somewhat limited when using the pipe on the client side:
http://stevedonovan.github.io/winapi/topics/readme.md.html#Pipe_Server

Basicly here my code for the server:
http://pastebin.com/vBALV183
Note: emu.frameadvance() is just a function to do some work(instead of sleep) on the application side.

And this is my code for the client side:
http://pastebin.com/Pjbc487x
Note: If I comment "str = f:read();", the server will just send "hellooooooooooooo\n" correctly.

Actually I don't run this directly on console but with an application that has an embeded lua(5.1) console as UI.

Hmm.. here's what it look like:
http://i.imgur.com/Orf4qxj.png

Basicly it's look like some weird string overflow.(I added some more "o" to "hello", so we can see the problem a bit better)

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

No branches or pull requests

1 participant