Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
emmab
on July 16, 2015
|
parent
|
context
|
favorite
| on:
Three Dead Protocols
I think your implementation of "RFC 862, the Echo Protocol" wouldn't work if the input doesn't end in a newline.
akama
on July 16, 2015
|
next
[–]
Also, if you send a large amount of data to the echo server, the server crashes. This is due to how data is read off the wire into a buffer. A suggestion is to use a fixed size buffer. I did test this earlier and I'm sorry that I crashed it.
tyho
on July 16, 2015
|
parent
|
next
[–]
Oops, I should have read the comments, I too crashed it testing this theory.
orangea
on July 16, 2015
|
prev
[–]
Also, pressing ^D causes the server to infinitely loop sending newline characters.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: