cedbv/SiriServer — Issue #1: Suggestion and nice job
Author: jimmykane
Created: 2012-02-28 21:40:20+00:00
State: open

In your code I think that you create a connection to the sqlite connection for each device (inbound connection)
This (either using epoll or not ) creates a big table of descriptors for the db connection, thus killing the process (its a matter of time and system resources).

remove the instace variables from the functions (self.dbconnection) and declare it as a global in :

class SiriServer(asyncore.dispatcher):

def __init__(self, host, port):
global dbConnection
dbConnection = db.getConnection()

Look if you like at my fork.

I would be much interested to contribute to one fork and not have many forks because all these forks etc make this confusing.

Anyway i can help!