Ssl in Orbited2?

20 views
Skip to first unread message

Philip Bennefall

unread,
May 15, 2012, 12:27:51 AM5/15/12
to orbite...@googlegroups.com
Hi all,
 
I am a new member in this group, and I would like to start by thanking the author and contributors for a fantastic framework. I have been looking for something that would give me normal TCP sockets in the browser for a long time, and have finally found the perfect solution as it seems. Now, to my question.
 
I was wondering whether Orbited2 supports ssl? That would solve a lot of issues for me if it did. I see that the original Orbited had support for this, but I cannot seem to find any information about it for version 2. And the API reference link is broken.
 
I'd be greatful for any help on this.
 
Kind regards,
 
Philip Bennefall

Niklas B

unread,
May 15, 2012, 8:40:21 AM5/15/12
to orbite...@googlegroups.com, Philip Bennefall
Hi,

Orbited2 should support https (at least for websocket/etc.), but I haven't tried it myself because I haven't had the time to switch to Orbited2 yet. As for documentation, the best bet is http://labs.gameclosure.com/orbited2/docs/ and https://github.com/gameclosure/orbited2

Example documentation from github says:

Orbited.Websocket.install({
	proxyUri: "https://orbited.example.com:8001"
	protocolVersion: "rev76",
	forceProxy: true
});

However looking through the code I can't see a good implementation. That said, it *should* just be changing:


From:

        for (iface, port), app in self._wsgi_apps.items():
            print "Orbited listening on http://%s:%s" % (iface or "0.0.0.0", port)
            eventlet.spawn(eventlet.wsgi.server, eventlet.listen((iface,port)), app, log=EmptyLogShim())
        ev = eventlet.event.Event()
        eventlet.spawn(self._run, ev)

To include certificate files, as seen on http://eventlet.net/doc/modules/wsgi.html#ssl

Regards,
Niklas

Philip Bennefall

unread,
May 15, 2012, 8:59:50 AM5/15/12
to orbite...@googlegroups.com
Hi Niklas,
 
Thank you very much for this detailed description. The question is why Orbited2 doesn't do this as gracefully as Orbited seems to do, from what I gather by looking at old configuration files for that. I only use regular tcp sockets, so if it supports this for web sockets that's of course a good thing but doesn't really work for me. I am not really comfortable patching the code locally, as I'd like to upgrade whenever new versions come out and I don't want to have to apply these changes each time. Do you know how I can get in contact with the author who wrote this code?
 
Kind regards,
 
Philip Bennefall

Niklas B

unread,
May 15, 2012, 9:34:09 AM5/15/12
to orbite...@googlegroups.com, Philip Bennefall
Hi,

Absolutely. I think it's mainly a time question, it doesn't do it as gracefully as orbited because we haven't had the time yet. What I would do is clone the Orbited2 repo from github, patch the code to add SSL support and then support a pull request to Orbited2 so it's included upstream. 

Would that work?

Regards,
Niklas

On Tuesday, May 15, 2012 2:59:50 PM UTC+2, Philip Bennefall wrote:

Hi Niklas,
 
Thank you very much for this detailed description. The question is why Orbited2 doesn't do this as gracefully as Orbited seems to do, from what I gather by looking at old configuration files for that. I only use regular tcp sockets, so if it supports this for web sockets that's of course a good thing but doesn't really work for me. I am not really comfortable patching the code locally, as I'd like to upgrade whenever new versions come out and I don't want to have to apply these changes each time. Do you know how I can get in contact with the author who wrote this code?
 
Kind regards,
 
Philip Bennefall
----- Original Message -----

Philip Bennefall

unread,
May 15, 2012, 9:55:58 AM5/15/12
to orbite...@googlegroups.com
Hi again,
 
To be honest I am fairly new to Python and to Guit, so if anyone more experienced than I has the time to do this I would appreciate it very much. I guess it'd be a matter of copying code from the older Orbited?
 
I am considering downgrading from Orbited2 to the regular Orbited, which I would do if I could find where to download the latest version of that. Are there any known issues with it that have been solved in Orbited2?
 
Kind regards,
 
Philip Bennefall
----- Original Message -----
From: Niklas B

Niklas B

unread,
May 15, 2012, 10:15:22 AM5/15/12
to orbite...@googlegroups.com, Philip Bennefall
Hi,

Understood. Unfortunately it's two different kind of sub-systems for Orbited and Orbited2, so copy/paste won't work. Regarding regular Orbited, it's available on https://bitbucket.org/desmaj/orbited/overview but it's unfortunately quite outdated right now. 

Regards,
Niklas

On Tuesday, May 15, 2012 3:55:58 PM UTC+2, Philip Bennefall wrote:


Philip Bennefall

unread,
May 15, 2012, 11:30:52 PM5/15/12
to orbite...@googlegroups.com
That is quite unfortunate that it is so outdated, or I would have happily used it since it seems a lot more feature rich. And the API reference link on the documentation page for Orbited2 is broken, so I had to figure stuff out from examples. Not a big deal, but all the same.
 
Does anyone know if the main author can be contacted? Does he read this mailing list? I am very interested in putting Orbited2 into serious use but I'd like to get some of these things addressed if possible. Especially the documentation part. Https I can probably hack myself for now if there is no other option.
 
Kind regards,
 
Philip Bennefall

Niklas B

unread,
May 16, 2012, 4:48:20 AM5/16/12
to orbite...@googlegroups.com, Philip Bennefall
Very unfortunate :/ 

We basically need both testers and developers right now and as you say - better documentation for Orbited2. Normally I would probably write that documentation but I'm using a very heavily modified version of Orbited 0.8 and thus the upgrade is not very easy - even though it's on my roadmap. 

The original author reads this list and can be contacted on github (username mcarter). 

I was wondering if you and me should get a better documentation going so we can get Orbited 2 on track. I have a good knowledge of Orbites (0.7/0.8) and it's js libraries and has spent quite a lot of time on them. Would love to take the next step with Orbited to get Orbited2 out live and working well. I think it's a great project and I am using 0.8 live with very good results.

If you want to I could also send you the 0.8 version I have (which is up-to-date with the js counterparts). 

Regards,
Niklas

On Wednesday, May 16, 2012 5:30:52 AM UTC+2, Philip Bennefall wrote:


Philip Bennefall

unread,
May 18, 2012, 2:16:08 AM5/18/12
to orbite...@googlegroups.com
Hi Niklas,
 
Pardon the late reply. I would be more than happy to help out with the documentation in any way I can, though as I say I am a very new user of Orbited2 as well as of Python. My main knowledge is in C/C++.
 
If we are to colaborate and send code back and forth etc, perhaps it would be good to use Skype and/or Msn messenger? I will send you a private email with my details.

Niklas B

unread,
May 22, 2012, 5:30:51 AM5/22/12
to orbite...@googlegroups.com, Philip Bennefall
Sounds like a plan. 

On Friday, May 18, 2012 8:16:08 AM UTC+2, Philip Bennefall wrote:


Dave A

unread,
May 22, 2012, 8:34:46 PM5/22/12
to orbite...@googlegroups.com, Philip Bennefall
Niklas,

My python is a bit rusty, but I'd be willing to pitch in where I can as well.

Dave

Niklas B

unread,
May 23, 2012, 4:08:20 AM5/23/12
to orbite...@googlegroups.com, Philip Bennefall
Awesome!

I suggest we use github to handle commits since it's awesome at what it does. If you want to ticker around with the code (or documentation for that matter) feel free to fork my version of orbited2 from https://github.com/bivald/orbited2

Also, I'm "bivald" on Skype - feel fre to add me (or I can send you my Google Talk if you prefer)

Regards,
Niklas
Reply all
Reply to author
Forward
0 new messages