JohnKenVan / jabber-net

Automatically exported from code.google.com/p/jabber-net
Other
0 stars 0 forks source link

Connection through a HTTPproxy with SSL is failed #75

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I try to instal the protected connection of the jabber client with jabber 
server through httpproxy, which does not support SSL. For this purpose I 
assign:

  jc.Proxy = connection.ProxyType.HTTP
  jc.ProxyHost = "host"
  jc.ProxyPort = port
  ...
  jc.SSL=true
  jc.connect

and receive an InvalidOperationException, because the client tries to 
instal SSL connection with proxy server.

I expected that the jabber client will instal SSL connection **AFTER** 
connection with proxy server.

I use: jabber-net.dll Ver=2.1.0.710, WinXP

Additional information:
System.InvalidOperationException occured
  Message="Socket not connected."
  Source="jabber-net"
  StackTrace:
       in bedrock.net.AsyncSocket.RequestRead()
       in bedrock.net.ProxySocket.RequestRead()
       in bedrock.net.ShttpProxy.OnConnect(BaseSocket sock)
       in bedrock.net.AsyncSocket.ExecuteConnect(IAsyncResult ar)
       ...

Original issue reported on code.google.com by smirnoff...@inbox.ru on 3 Jun 2009 at 9:21