similar to: getsockname access

Displaying 20 results from an estimated 200 matches similar to: "getsockname access"

2008 Apr 30
5
get_peername - start_server vs. connect
Hi, On windows, get_peername works both with connections obtained via start_server, and connections obtained via connect. On linux, get_peername seems to only work with connections obtained via start_server. (I''m using svn HEAD.) I''m wondering which is the intended behavior? (I realize get_peername is less useful for connections obtained via connect, since one should already
2006 Aug 08
11
Core dump using sample DumbHttpClient
I''m using the current release branch from the repository (version_0) on freebsd 6.1 with ruby 1.8.4. This is the error that is generated when running the code below at the bottom of the message, plus a gdb bt. Sorry no debugging symbols built into ruby but maybe the bt will help anyways. terminate called after throwing an instance of ''std::runtime_error'' what():
2007 Feb 25
6
Crash occurs where EventMachine.connect is
Hi everyone, If you subclass EventMachine::Connection and call it outside an EventMachine::run event loop, EventMachine crashes! Example: class Put < EventMachine::Connection include EventMachine::Deferrable HOST="localhost" PORT=8080 def self.request(data) EventMachine.connect(HOST, PORT, self) {|c| c.instance_eval { @data = data } } end #
2008 Jan 14
10
Using EventMachine to listen from non-network
I''ve actually found a way to make EventMachine listen to events from a serial port, but only by using the pure Ruby version, using Guilliame Pierronnet''s Ruby/SerialPort library. It turned out to be simpler than I thought it would be: require ''serialport'' $eventmachine_library = :pure_ruby require ''eventmachine'' module EventMachine class
2007 Feb 26
9
libevent
Francis, I read in the list archives back that a future EventMachine release will support epoll on Linux (i.e., it''s in the trunk). Better still, is there a possibility that EM will rely on libevent so that it will be architecture independent (i.e. epoll on Linux, kqueue on FreeBSD/Mac OS X, /dev/poll on Solaris)? This is how memcached is implemented, and it would be helpful to be able
2007 Apr 25
1
ldd rubyeventmachine.so, sparc64, openbsd4.0
sorry to start a new thread. didnt know how to continue the other one i started. $ ldd rubyeventmachine.so rubyeventmachine.so: rubyeventmachine.so: Exec format error rubyeventmachine.so: exit status 1 dont mean to waste your time, just been asked on irc whether i''ve had a look into eventmachine and i mentioned that it did not compile properly on my box. so if this is too much of a
2009 Feb 26
1
0.12.4 dies with call SetTlsParms before
I upgraded from 12.2 to 12.4 and found that my happy little eventmachine processes die with: terminate called after throwing an instance of ''std::runtime_error'' what(): call SetTlsParms before calling StartTls Here''s what I believe is the relevant snippet of my code, which calls start_tls() in the connection_completed() callback: connection =
2008 Jan 15
4
popen woes
From: "Michael S. Fischer" <michael at dynamine.net> > > I wanted my worker program (which uses EM) to pass the user''s password > to the Expect script via standard input in order to avoid some > security hazards associated with alternatives such as storing it in a > file or in the environment, either of which may be observed by others > logged into the
2007 Aug 15
2
Interfaces for accessing SSL/TLS certificates
Hi everyone. Does anyone have any preferences or ideas for an interface for SSL certificates, both client-side and server-side? At present, the only interface is EventMachine::Connection#start_tls, which uses a built-in self-signed cert on the server side. On the cilent side, it accepts any well-formed cert (that is, it doesn''t check that the remote cert is signed by a trusted authority).
2006 Jul 10
13
LDAP auth/az for Rails
All: I recently wrote an LDAP library for Ruby called Net::LDAP, and I''ve noticed that quite a few people are using it to do authentication and authorization for Rails apps. I know there are several well-done login generators for Rails, but what about people that would rather use a directory? If we were to write a generator for Rails that used LDAP (or A/D) as the backend, would
2006 Aug 05
10
Converting mysql to postgres
Hi, Anyone got any cool tricks for converting a Rails site (in this case, a typo installation) from a mysql database to a postgresql database? I''ve got it almost working -- I''m doing a SQL dump from mysql and loading it into postgres. However, mysql does booleans as a tinyint with 0 = false and 1 = true. When I try to import that into a postgres database that expects booleans
2007 Dec 09
38
libevent
Hello, I have been looking at the Ruby/EventMachine. First let me say it look very good. Reactor model with no threads makes for fast reliable server, and I have read about marvelous Twisted framework for Python and am glad to see something similar for Ruby. I am writing network app with Ruby threads now and it very slow, and I try new Ruby 1.9 with native threads that make it much slower.
2007 Sep 14
3
epoll appears to break
The following program is a minor variant on the sample given in the README with eventmachine-0.8.1. I am running under CentOS 4.5 (kernel 2.6.9-55.0.2.plus.c4) with a ruby-1.8.5 RPM from the CentOS testing repository. When I run it, I find that set_comm_inactivity_timeout doesn''t do anything. That is, if I client opens a connection, it stays open indefinitely. However, if I comment out
2006 Jul 11
32
Database Concurrency Without a Web Server?
My Rails application requires a very busy worker process running in the background at all times. I am launching this non-interactive process using script/runner. This process is very busy and is communicating with the MySQL server constantly. As I started putting some load on the system to test, I started running into performance issues. I have since discovered that Rails is only using 1
2008 Dec 12
2
jruby em
What repository should I pull from to get the latest snapshot of the EM java code for jruby? cr
2007 May 24
4
Multiple EM connections on separate threads
Hi EM Gurus, I''m hoping someone can shed some light on the following... I''m using a 3rd party (legacy) server that can accept up to 8 simultaneous connections on one port. I''ve been able to make multiple connections to this server from within one call to EventMachine::run {...}. Specificaly, I can access each connection separately using: em_thread = Thread.new do
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().
2008 Aug 22
6
EventMachine website down?
Hi all Is the EventMachine website (www.rubyeventmachine.com) down? I can''t access it from South Africa, and have tried using tor as well with no luck. I''m kinda new to EventMachine, so I first have a lot of examples to work through and reading to do before I start pestering the mailing list with questions. Thanks to everyone who partook in creating the library, so far
2006 Aug 07
2
User Authentication and Authorization with SiteMinder
Hi All I am new the RoR and would like some advice on how to integrate SiteMinder authentication/authorization in my Rails app. For those who are not aware SiteMinder authenticates users and then redirects the user back to the application that requested authentication while setting response header which look something like this
2008 Feb 01
6
epoll increasing latency big time
Sorry this is going to be a bit vague, but I''ve noticed something rather odd going on with EventMachine on Linux. I''ve written something uses EventMachine to proxy HTTP to other processes. On OS X, it works great, adding only about 20% extra latency into the connection when proxying versus connecting to the original backend process directly, so a 5ms connection might now take