in reply to sending data over TCP channel using POE::Component::Server::TCP
Your client is treating the connection as a stream (by using POE::Filter::Stream to interpret the data). It seems to me that the server should be doing the same.
Are your sure your sysread() read everything?
Have you tried printing the length() of what you're sending and receiving? When I do that here, I get:
% perl perlmonks-701147-server.pl got a connection from 127.0.0.1 sending 21097and
% perl perlmonks-701147-client.pl sending request on localhost:12345 ... input size: 21099The client receives 2 additional characters: carriage return, and linefeed. The default server-side POE::Filter::Line adds them, and the client-side POE::Filter::Stream doesn't remove them.
If you're still having problems, maybe you're running an old version of POE? I can't reproduce the error with your test case, so something must be outdated or different between our systems.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: sending data over TCP channel using POE::Component::Server::TCP
by cta (Acolyte) on Jul 30, 2008 at 18:52 UTC | |
by cmv (Chaplain) on Jul 31, 2008 at 17:06 UTC | |
by cta (Acolyte) on Jul 31, 2008 at 17:57 UTC | |
by rcaputo (Chaplain) on Aug 08, 2008 at 20:05 UTC | |
by rcaputo (Chaplain) on Aug 08, 2008 at 20:11 UTC | |
by Anonymous Monk on Oct 09, 2008 at 08:37 UTC |