Re: freetds async usage
Marc Abramowitz <[email protected]>
| Newsgroups | gmane.comp.db.tds.freetds |
|---|---|
| Message-ID | <[email protected]> |
In the specific case of Python, I happen to know that pymssql supports concurrency through gevent, because I added it. That was trivial to add, because FreeTDS gives the file descriptor it's waiting on and gevent can be told to run other greenlets until that file descriptor has data ready to read. That's Python but if you're using some other platform (which?), you might get some ideas by cribbing from pymssql. And perhaps I might get some ideas by looking at what you do - maybe you'll improve upon it - so let me know if you go that route. If you want more details, let me know. There was also a thread around that time about async where I inquired similarly to you and James K. Lowden responded with some thoughts. If you can't find it, let me know and I'll see if I have it in my notes. -Marc http://marc-abramowitz.com Sent from my iPhone 4S > On Nov 10, 2014, at 11:26 AM, Tolga Ceylan <[email protected]> wrote: > > It's more of an open question, any approach/implementation is OK. > > This could be via ct_poll() sort of approach or freetds could expose sockets > for the application to monitor via epoll/poll, etc. > > I've got no strict requirements or any dependencies to any specific library. > > In other words, I want to manage multiple connections in a single thread > where freetds API should not block. > > > >> On Mon, Nov 10, 2014 at 2:01 AM, Frediano Ziglio <[email protected]> wrote: >> 2014-11-07 21:50 GMT+00:00 Tolga Ceylan <[email protected]>: >> >>> I know this is not possible with the current code, but I was wondering >>> if anybody worked on this in the past. >>> >>> How hard would it be to add async support to freetds? >>> >>> For example, linux/epoll support? >>> >>> Cheers, >>> Tolga Ceylan >> >> Hi, >> different libraries have different ideas for async implementations. What >> do you mean by async with linux/epoll? Which library are you using? >> >> Regards, >> Frediano >> _______________________________________________ >> FreeTDS mailing list >> [email protected] >> http://lists.ibiblio.org/mailman/listinfo/freetds > _______________________________________________ > FreeTDS mailing list > [email protected] > http://lists.ibiblio.org/mailman/listinfo/freetds