Xpra: Ticket #129: Only the first connection to server works

After the first session, the server does not accept any further connections correctly. This was bisected to the changes made by r778 and r779. The client revision doesn't matter, only the server.

Sat, 26 May 2012 16:00:59 GMT - Norman Rasmussen:

With some debugging I have determined that on _process_connection_lost that _clear_keys_pressed and unpress_all_keys never returns.

r778 made it so that the process_packet(CONNECT_LOST) can run on any of 3 threads (read/writer/main).

There are two possible fixes:

1) change all calls to self.close() in protocol to run via idle_add (like _read_parse_thread_loop does),

2) I think the better fix is to invoke _process_packet_cb using idle_add in close(). A proposed patch is included.

Sat, 26 May 2012 16:01:17 GMT - Norman Rasmussen: attachment set

Sun, 27 May 2012 18:31:03 GMT - Antoine Martin: status changed; resolution set

applied in r876 - thanks!

Sat, 23 Jan 2021 04:46:19 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/129