Here is the timeout defined and set as socket option:recv() call has MSG_WAITALL flag, where's this 2 sec timeout coming from?
I gather it can only come from a (periodic?) signal setup somewhere else?
I tracked the file history as far as I can see it in github since when it was still called "module-emulator-stream" instead of "module-emulator-streamserver" and the comment appears to be there since such origin: https:/ /github.com/oscam-emu/oscam-patched/blob/aa3f9c388157c737602b240c44ed1fe75c37f0f5/module-emulator-stream.c#L815
The closest thing I could find was cc_recv_timeout which is indeed defined as 2 seconds, except it is used, as expected, in a poll() call, not a recv() one.
Also, a brief rant for something I know it's not part of your patch:Sie müssen registriert sein, um Links zu sehen.should really be using a logical OR instead of a bitwise one (and the extra parenthesis removed once that happens).
Sie müssen registriert sein, um Links zu sehen.
Yes, I also saw the | instead of ||. Is not wrong in this case, but also not very nice. Will change it in the next patch which adds the poll. Will come maybe mid or end of the week.