search for: rubymain

Displaying 3 results from an estimated 3 matches for "rubymain".

Did you mean: ruby_main
2007 Jul 15
2
ssl patch
I made a quick patch to em so it will try to read the key/cert from a file if it exists in the cwd, and if not use the hardcoded default. If I added a function in rubymain.cpp to set the location of the pem file, where in em would be the right place to set it? It should be in the same scope as start_tls I would think. I''m checking for the pem file in InitializeDefaultCredentials(). Chris
2007 Feb 25
6
Crash occurs where EventMachine.connect is
...st=0xb7ad0d50 <~runtime_error>) at ../../../../src/libstdc++-v3/libsupc++/eh_throw.cc:77 #7 0xb7b6e017 in evma_connect_to_server (server=0x80ccad8 "localhost", port=8080) at cmain.cpp:92 #8 0xb7b6c455 in t_connect_server (self=3082803140, server=3082609960, port=16161) at rubymain.cpp:207 Is it possible to die more gracefully, i.e. by raising an exception? Alternatively, might there be some way to create a class that provides a singleton method (e.g. self.connect) to return an instance of EventMachine::connection running inside an anonymous event loop? (Probably not, but I...
2007 Dec 14
21
Some silly benchs (was: 1.9)
Guys, Just for fun, I tried to see (I know, a silly way to test it) how much overhead we have calling the C functions of the extensions. the benchmark script and the results: http://pastie.caboo.se/128646 The naive C extension: http://pastie.caboo.se/128647 I compared 1.8.6 (VC6 and mingw builds) against a fresh checkout of ruby trunk. What I understand from that is 1.9 is slower than 1.8