spice/server
Frediano Ziglio 6e43433ec2 tests: add a new case for event loop timers
Check that cancelling a timer the timer callback is not called.

This can happen in latency code (red-channel.c).
In red_channel_client_cancel_ping_timer latency timer is cancelled and
state is set to PING_STATE_NONE however if timer was already active what
happens is that the red_channel_client_ping_timer is called and the line

  spice_assert(rcc->latency_monitor.state == PING_STATE_TIMER);

is triggered causing spice-server to abort.
This happens as GLib loop add all active sources to an array but if the
timer is deactivated before the event is dispatched the event will be
dispatched unless the source is destroyed.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
2016-02-12 17:44:47 +00:00
..
tests tests: add a new case for event loop timers 2016-02-12 17:44:47 +00:00
.gitignore Update the .gitignore files for the new manual, 2015-10-16 15:48:23 -05:00
agent-msg-filter.c server: rename files 2015-12-03 23:54:32 +00:00
agent-msg-filter.h server: Add support for filtering out agent file-xfer msgs (rhbz#961848) 2013-06-06 16:07:30 +02:00
cache-item.h server: rename files 2015-12-03 23:54:32 +00:00
cache-item.tmpl.c channel: rename misleading functions 2016-02-11 23:51:42 +00:00
char-device.c Add RedsState arg to smartcard_device_connect() 2016-02-12 15:10:53 +00:00
char-device.h Add RedsState arg to smartcard_device_connect() 2016-02-12 15:10:53 +00:00
cursor-channel.c CommonChannel: hold a reference to QXLInstance instead of RedWorker 2016-02-11 23:51:46 +00:00
cursor-channel.h server: rename files 2015-12-03 23:54:32 +00:00
dcc-encoders.c CommonChannel: hold a reference to QXLInstance instead of RedWorker 2016-02-11 23:51:46 +00:00
dcc-encoders.h Remove compress_buf_new 2016-01-14 16:39:30 +00:00
dcc-send.c CommonChannel: hold a reference to QXLInstance instead of RedWorker 2016-02-11 23:51:46 +00:00
dcc.c dcc: remove not necessary volatile specifications 2016-02-12 06:17:32 +00:00
dcc.h Handle GL_DRAW messages 2016-02-09 14:01:25 +00:00
demarshallers.h Remove trailing blank lines 2012-01-13 18:11:59 +02:00
dispatcher.c dispatcher: Remove unused dispatcher_read_message 2015-11-23 11:45:20 +00:00
dispatcher.h server: misc header cleanups 2015-12-09 22:17:51 +00:00
display-channel.c CommonChannel: hold a reference to QXLInstance instead of RedWorker 2016-02-11 23:51:46 +00:00
display-channel.h Store 'renderers' as GArray in RedsState 2016-02-11 19:12:53 +00:00
display-limits.h worker: start a DisplayChannelClient unit 2015-11-19 12:43:02 +00:00
event-loop.c compatibility patch for event loop 2016-02-03 13:27:16 +00:00
glz-encode-match.tmpl.c server: rename _tmpl files 2015-11-26 13:33:36 +00:00
glz-encode.tmpl.c server: rename _tmpl files 2015-11-26 13:33:36 +00:00
glz-encoder-dict.c remove glz_encoder_config.h 2015-12-04 11:57:18 +00:00
glz-encoder-dict.h remove glz_encoder_config.h 2015-12-04 11:57:18 +00:00
glz-encoder-priv.h server: misc header cleanups 2015-12-09 22:17:51 +00:00
glz-encoder.c server: rename files 2015-12-03 23:54:32 +00:00
glz-encoder.h server: misc header cleanups 2015-12-09 22:17:51 +00:00
image-cache.c server: rename files 2015-12-03 23:54:32 +00:00
image-cache.h server: rename files 2015-12-03 23:54:32 +00:00
inputs-channel.c Add RedsState arg to inputs_channel_new() 2016-02-12 15:32:47 +00:00
inputs-channel.h Add RedsState arg to inputs_channel_new() 2016-02-12 15:32:47 +00:00
jpeg-encoder.c server: rename files 2015-12-03 23:54:32 +00:00
jpeg-encoder.h server: rename files 2015-12-03 23:54:32 +00:00
lz4-encoder.c server: rename files 2015-12-03 23:54:32 +00:00
lz4-encoder.h server: rename files 2015-12-03 23:54:32 +00:00
main-channel.c MainChannel: don't use global 'reds' variable 2016-02-12 15:41:47 +00:00
main-channel.h MainChannel: don't use global 'reds' variable 2016-02-12 15:41:47 +00:00
main-dispatcher.c Add RedsState arg to reds_handle_channel_event() 2016-02-09 11:10:00 +00:00
main-dispatcher.h channel: add a new internal SpiceCoreInterface 2016-01-11 16:29:53 +00:00
Makefile.am worker: use glib main loop 2016-01-28 16:16:50 +00:00
memslot.c server: misc header cleanups 2015-12-09 22:17:51 +00:00
memslot.h server: rename files 2015-12-03 23:54:32 +00:00
migration-protocol.h server: rename files 2015-12-03 23:54:32 +00:00
mjpeg-encoder.c server: Add time constants to go with spice_get_monotonic_time_ms() 2015-12-14 11:24:47 +00:00
mjpeg-encoder.h server: rename files 2015-12-03 23:54:32 +00:00
pixmap-cache.c syntax-check: Add missing #include <config.h> 2015-10-19 14:25:36 +02:00
pixmap-cache.h server: rename files 2015-12-03 23:54:32 +00:00
red-channel.c Store a reference to RedsState in Channel base class 2016-02-12 15:27:03 +00:00
red-channel.h Store a reference to RedsState in Channel base class 2016-02-12 15:27:03 +00:00
red-common.h event-loop: Remove template 2016-01-21 14:19:24 +00:00
red-dispatcher.c dispatcher: remove unused async_commands ring 2016-02-11 19:57:20 +00:00
red-dispatcher.h Handle GL_DRAW messages 2016-02-09 14:01:25 +00:00
red-parse-qxl.c check properly if red_get_data_chunks fails or not 2016-01-08 18:16:42 +00:00
red-parse-qxl.h server: rename files 2015-12-03 23:54:32 +00:00
red-record-qxl.c server: Use '%zu' to print size_t variables 2015-12-15 17:50:05 +00:00
red-record-qxl.h server: rename files 2015-12-03 23:54:32 +00:00
red-replay-qxl.c Replay: report error if we don't read the correct file header 2016-01-22 11:03:30 +00:00
red-replay-qxl.h server: rename files 2015-12-03 23:54:32 +00:00
red-worker.c Store a reference to RedsState in Channel base class 2016-02-12 15:27:03 +00:00
red-worker.h CommonChannel: hold a reference to QXLInstance instead of RedWorker 2016-02-11 23:51:46 +00:00
reds-private.h Store 'renderers' as GArray in RedsState 2016-02-11 19:12:53 +00:00
reds-stream.c Move 'core' into RedsState struct 2016-02-11 11:55:30 +00:00
reds-stream.h reds-stream: add send_msgfd() 2016-01-14 10:55:36 +00:00
reds.c MainChannel: don't use global 'reds' variable 2016-02-12 15:41:47 +00:00
reds.h Store 'renderers' as GArray in RedsState 2016-02-11 19:12:53 +00:00
smartcard.c Store a reference to RedsState in Channel base class 2016-02-12 15:27:03 +00:00
smartcard.h Add RedsState arg to smartcard_device_connect() 2016-02-12 15:10:53 +00:00
sound.c Store a reference to RedsState in Channel base class 2016-02-12 15:27:03 +00:00
sound.h server: rename files 2015-12-03 23:54:32 +00:00
spice-audio.h Split spice.h 2014-11-27 14:27:18 +01:00
spice-bitmap-utils.c utils: handle errors writing to bitmap file 2016-01-15 12:30:03 +00:00
spice-bitmap-utils.h server: misc header cleanups 2015-12-09 22:17:51 +00:00
spice-bitmap-utils.tmpl.c server: rename _tmpl files 2015-11-26 13:33:36 +00:00
spice-char.h Split spice.h 2014-11-27 14:27:18 +01:00
spice-core.h Split spice.h 2014-11-27 14:27:18 +01:00
spice-experimental.h Add missing license headers 2015-10-19 14:25:36 +02:00
spice-input.h Split spice.h 2014-11-27 14:27:18 +01:00
spice-migration.h Move spice_server_get_num_clients() declaration 2014-11-27 15:03:38 +01:00
spice-qxl.h Add new spice-gl stubs API 2016-02-09 14:01:12 +00:00
spice-server.h channel: add option tcp keepalive timeout to channels 2016-01-12 15:10:47 +01:00
spice-server.syms Add new spice-gl stubs API 2016-02-09 14:01:12 +00:00
spice-version.h.in build-sys: generate spice-version.h 2014-11-27 14:27:33 +01:00
spice.h Split spice.h 2014-11-27 14:27:18 +01:00
spicevmc.c Store a reference to RedsState in Channel base class 2016-02-12 15:27:03 +00:00
stat.h stat: Make stat_compress_init/stat_init the same 2016-01-12 11:46:32 +01:00
stream.c server: Use PRI macros in printf for 32/64 bit compatibility 2015-12-15 17:47:50 +00:00
stream.h server: Add time constants to go with spice_get_monotonic_time_ms() 2015-12-14 11:24:47 +00:00
sw-canvas.c server: misc header cleanups 2015-12-09 22:17:51 +00:00
sw-canvas.h server: rename files 2015-12-03 23:54:32 +00:00
tree.c pass proper type to SPICE_CONTAINEROF 2015-12-04 13:33:54 +00:00
tree.h Move some tree item functions to tree.[ch] 2015-11-17 17:22:05 +00:00
utils.c worker: move dcc_add_surface_area_image 2015-11-23 13:50:44 +00:00
utils.h server: Add time constants to go with spice_get_monotonic_time_ms() 2015-12-14 11:24:47 +00:00
zlib-encoder.c server: rename files 2015-12-03 23:54:32 +00:00
zlib-encoder.h server: rename files 2015-12-03 23:54:32 +00:00