[vlc-commits] [Git][videolan/vlc][master] cli: send EOF on control socket disconnect
Felix Paul Kühne (@fkuehne)
gitlab at videolan.org
Sun Apr 19 12:38:48 UTC 2026
Felix Paul Kühne pushed to branch master at VideoLAN / VLC
Commits:
c1880917 by Sergio Ammirata at 2026-04-19T14:25:07+02:00
cli: send EOF on control socket disconnect
Since 4.0 now allows several simultaneous cli connections, this changeset allows notifying the client that the socket won't be used anymore even if the file descriptor isn't yet closed server-side.
This mimics VLC 3.x behavior.
- - - - -
1 changed file:
- modules/control/cli/cli.c
Changes:
=====================================
modules/control/cli/cli.c
=====================================
@@ -477,6 +477,11 @@ static void *cli_client_thread(void *data)
libvlc_Quit(vlc_object_instance(intf));
vlc_restorecancel(canc);
}
+ else
+ {
+ // Force EOF
+ shutdown(fileno(cl->stream), SHUT_WR);
+ }
atomic_store_explicit(&cl->zombie, true, memory_order_release);
return NULL;
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c18809179601a0817420499e717ceecfe710e501
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c18809179601a0817420499e717ceecfe710e501
You're receiving this email because of your account on code.videolan.org.
More information about the vlc-commits
mailing list