You cannot post messages because only members can post, and you are not currently a member.
Description:
EventMachine discussion, help for users, and development. EventMachine is a framework for writing fast, scalable event-driven programs in Ruby.
|
|
|
closing udp sockets
|
| |
I'm having a problem of "no datagram socket" after 1016 sockets are
opened and closed. The following prints out:
[...]
closed
1017=>no datagram socket
it *appears* that the sockets are being closed, but I can't open any
more after 1016. Any ideas on what I'm doing wrong?
require 'eventmachine'... more »
|
|
simple dns lookup over udp
|
| |
I'm trying the following, but the receive_data is never called, any
idea why?
require "net/dns"
require 'eventmachine'
require 'pp'
class DNSClient < EM::Connection
def initialize(domain,ns)
@domain = domain
@ns = ns
end
def post_init
packet = Net::DNS::Packet.new(@domain)... more »
|
|
Increasing concurrent connections beyond ~1000
|
| |
So I have an em-websocket server running and I'm trying to see how
well it can scale. So I've written a small script that loops through
and creates a ton of em-http-requests that each connect to the server.
It scales just fine to around 1008 connections then the server blows
up.
I have already searched through this group and have tried the... more »
|
|
Beginner EM synchronization questions
|
| |
Hi guys,
I have a couple of questions that I hope you could help me with.
Imagine my code is something like this:
values = { } # some data here
EM.run {
EM.add_periodic_timer(10) do
end
EM.defer do
end
...
I'm concerned about the thread safety of accessing/manipulating the... more »
|
|
Encryption/SSL Error
|
| |
Hej Folks,
i really like Eventmachine but i somehow struggled today and don't
know how get along ...
I tried to connect to the Twitter Streaming-API with oAuth via https.
Doing so i get the following output:
terminate called after throwing an instance of 'std::runtime_error'
what(): Encryption not available on this event-machine... more »
|
|
EM HTTP request & proxy authorization
|
| |
Howdy,
I try to auth against a HTTP proxy for hours now. What's going wrong
here?
#!/usr/bin/env ruby
require 'eventmachine'
require 'em-http-request'
EM::run do
connection_opts = {:proxy => {:host => 'proxy.example.com', :port
=> 3128 }}
request_opts = {:proxy => {:authorization => ['jdoe',... more »
|
|
Could GC cause periodic spikes when processing TCP messages?
|
| |
Right now in our production server, we have a server Ubuntu 11.04 server running EM 1.0.0.beta.4 as one of our backends. For the most part, it receives a TCP message from one client, does some slight processing in EM::Connection#receive_data, and broadcasts that same message to other clients. On average, it takes anywhere from 1-3ms to process the message,... more »
|
|
|