On 2018-01-18 02:20 AM, Fiedler, Mathias wrote:
Hi,
-----Original Message-----
From: Derek Foreman [mailto:[email protected]]
Sent: Mittwoch, 17. Januar 2018 21:41
To: Fiedler, Mathias; [email protected]
Subject: Re: [PATCH v2] server: add log message when client connection is
destroyed due to an error
On 2017-12-05 02:49 AM, Mathias Fiedler wrote:
The client connection is destroyed by the server in several
circumstances. This patch adds log messages in case the connection is
destroyed due to an error other than normal hangup.
Signed-off-by: Mathias Fiedler <[email protected]>
This looks good to me. I can see this being helpful in debugging.
Reviewed-by: Derek Foreman <[email protected]>
Thanks for your review.
I do wonder if anyone is going to think this is too verbose, and want it to be
optional... Can a bogus client use this to flood logs? (Say, by sending an
incomplete packet and disconnecting?)
A client can already cause a log message by sending an invalid message, e.g. by
using an invalid object id. This patch just adds another message for such case.
The main intent of this patch was to log the other cases.
But the client would have to reconnect after each error to flood the log.
Yeah, it's probably nothing worth worrying about.
I have no idea for a simple way to make this optional.
Nor do I.
This is pushed now.
Thanks,
Derek
-Mathias
_______________________________________________
wayland-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/wayland-devel