kdonovan/apn_sender — Issue #17: Persistent Sockets
Author: AnonymousCow
Created: 2011-12-03 13:55:07+00:00
State: open

How does this send notifications through the same persistent socket? If I queue notifications and run a worker in dev then step through it in the debugger, `setup_connection` is always called when the socket is written to. The `@socket` ivar is always nil, I assume because jobs are forked before they are run so how is the `socket` method in `APN::Connection:Base` supposed to evaluate?

```ruby
def socket
setup_connection unless @socket
return @socket
end
```

PS. Great library!