[Spice-devel] [spice-gtk] Fix TLS connections when both TLS/non-TLS port are given

Marc-André Lureau marcandre.lureau at gmail.com
Wed Mar 12 06:18:04 PDT 2014


On Wed, Mar 12, 2014 at 2:15 PM, Christophe Fergeau <cfergeau at redhat.com> wrote:
> On Tue, Mar 11, 2014 at 07:12:56PM +0100, Marc-André Lureau wrote:
>> On Tue, Mar 11, 2014 at 6:03 PM, Christophe Fergeau <cfergeau at redhat.com> wrote:
>> > When qemu only accepts TLS connections, but spice-gtk is given an URI with
>> > both port and tls-port specified, spice_session_channel_open_host() is
>> > first attempted to the non-TLS port, and when that fails,
>> > spice_channel_coroutine() retries a TLS connection.
>> >
>>
>> On a second thought, I think it was also a good idea to report an
>> error when the specified non-tls port is invalid.
>
> I did not get what you want here :-/ In which situation exactly do you want
> an error to be reported?

When the given plain port doesn't exist or G_IO_ERROR_CONNECTION_REFUSED.

That is, it is a good thing to report an error if the spice server
only accepts tls connection, but the client was given a plain port
too.

No?



-- 
Marc-André Lureau


More information about the Spice-devel mailing list