-
-
Notifications
You must be signed in to change notification settings - Fork 155
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trying to listing on socket, works in some cases not in all #18
Comments
The |
BTW this is the perl code which I try to use: https://github.com/stevenshiau/clonezilla/blob/master/bin/ocs-socket by issuing |
I think I found the problem: http://stackoverflow.com/questions/15163778/perl-tcp-client-does-not-display-incoming-data & http://stackoverflow.com/questions/993217/php-to-perl-socket-communication. |
馃巻 just looked at it again, and my assumption in the last post was correct, in the code I fetched via composer there is this:
Which checks if there is and end of file before emitting the data. However in this code repo there is this line https://github.com/reactphp/socket/blob/master/src/Connection.php#L14 Which works perfect 馃槂. So the problem was I was using and old ratchet/react version..... |
@LEDfan Was it a typo in your composer.json (version constraint) or does the latest version which is provided by composer/packagist not contain the correct line? |
@staabm I first had:
Now I have:
|
Hi, thanks for this project 馃槂.
I'm using this code from the
README.md
, with a small adjustment to output any data send to it.This works perfect if you start a netcat shell:
nc localhost 6461
, and type some data into it. However when I try to pipe some data to netcat e.g.echo "test" | nc localhost 6461
, the connection is received (I see the new connection msg and ip address). However the data isn't received.Is this normal behaviour or is this a bug? I'm trying to "catch" output from an existing service, which I can't change.
Thanks! (If you give me some hints where the bug is, I'll be happy to open a PR)
The text was updated successfully, but these errors were encountered: