Greetings all,
I have quite a conundrum on my hands, and its got me mightily stumped. I have a non-forking multiuser TCP server that I have running on my port 23, this is based mostly on the Perl Cookbook non-forking server in Chapter 17.
Now - heres the problem:
Depending on how I connect to the server, I can get a 20 character ascii-extended character piece of garbage that somehow appears before I type anything in from the client, thus the very first line that goes to the server is prefixed with it.
Now that, in itself, is pretty wierd -- magic text appearing from nowhere -- but it gets better!
telnet localhost 23
telnet localhost
Spot the difference! Yes, thats right, in one I explicitly define a port to connect to, and in the other I let telnet assume I mean port 23. Big deal, I hear you cry -- well apparently it
is, because my garbage ONLY appears when I let telnet assume port 23.
Anyone got even the faintest idea what on earth is going on? This sounds ludicrous, but it really DOES happen!
JP,
-- Alexander Widdlemouse undid his bellybutton and his bum dropped off --
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.