VowpalWabbit / vowpal_wabbit

Vowpal Wabbit is a machine learning system which pushes the frontier of machine learning with techniques such as online, hashing, allreduce, reductions, learning2search, active, and interactive learning.
https://vowpalwabbit.org
Other
8.49k stars 1.93k forks source link

Request to daemon hands #4687

Closed aastafiev closed 8 months ago

aastafiev commented 8 months ago

Hello,

While I was reproducing example in Daemon example I found that after command echo " abc-example| a b c" | netcat localhost 26542 the result printed and hands until I Ctrl+C. This happens in python code after I send message and trying to recv. What I'm doing wrong?

aastafiev commented 8 months ago

I put detailed info on stackoverflow

JohnLangford commented 8 months ago

You need to close the connection so netcat knows to tear things down. CTRL+C works, but CTRL+D is cleaner.