luaevent/CHANGELOG

Wed, 13 Jun 2007 04:32:12 +0000

author
Thomas Harning Jr <harningt@gmail.com>
date
Wed, 13 Jun 2007 04:32:12 +0000
changeset 10
88ce07d62597
parent 6
59287edf821b
child 11
8339f6236a3c
permissions
-rw-r--r--

Setup management of socket create/close.
Recognized new bug: cannot create threads within threads... C contains reference to closed thread, not
global.

10
88ce07d62597 Setup management of socket create/close.
Thomas Harning Jr <harningt@gmail.com>
parents: 6
diff changeset
1 ======
88ce07d62597 Setup management of socket create/close.
Thomas Harning Jr <harningt@gmail.com>
parents: 6
diff changeset
2 0.1.1 - Revision 14 - 2007-06-13
88ce07d62597 Setup management of socket create/close.
Thomas Harning Jr <harningt@gmail.com>
parents: 6
diff changeset
3 + Fixed event-handling code to cancel events on nothing being returned
88ce07d62597 Setup management of socket create/close.
Thomas Harning Jr <harningt@gmail.com>
parents: 6
diff changeset
4 + Added socket/object cleanup.
88ce07d62597 Setup management of socket create/close.
Thomas Harning Jr <harningt@gmail.com>
parents: 6
diff changeset
5 + Filed bug to libevent about the strange valgrind-released errors
88ce07d62597 Setup management of socket create/close.
Thomas Harning Jr <harningt@gmail.com>
parents: 6
diff changeset
6 - Recognized following issues:
88ce07d62597 Setup management of socket create/close.
Thomas Harning Jr <harningt@gmail.com>
parents: 6
diff changeset
7 Timeouts needed
88ce07d62597 Setup management of socket create/close.
Thomas Harning Jr <harningt@gmail.com>
parents: 6
diff changeset
8 Need to handle events setup from inside a coroutine... need to get a global Lua state from a thread...
6
59287edf821b Reformatted changlog
Thomas Harning Jr <harningt@gmail.com>
parents: 5
diff changeset
9 ======
5
205a6b09e3bd Added changelog
Thomas Harning Jr <harningt@gmail.com>
parents:
diff changeset
10 0.1.0 - Revision 6 - 2007-06-10 22:00 EST
6
59287edf821b Reformatted changlog
Thomas Harning Jr <harningt@gmail.com>
parents: 5
diff changeset
11 Completed mostly working version
59287edf821b Reformatted changlog
Thomas Harning Jr <harningt@gmail.com>
parents: 5
diff changeset
12 * Moved to a mode where addevent calls a callback rather than it being instantiated within.
59287edf821b Reformatted changlog
Thomas Harning Jr <harningt@gmail.com>
parents: 5
diff changeset
13 If the callback returns -1, then no event is ever setup,
59287edf821b Reformatted changlog
Thomas Harning Jr <harningt@gmail.com>
parents: 5
diff changeset
14 Otherwise the integer value is used to setup the event.
59287edf821b Reformatted changlog
Thomas Harning Jr <harningt@gmail.com>
parents: 5
diff changeset
15 This allows for using coroutine.wrap rather than a cooked-up wrapper
59287edf821b Reformatted changlog
Thomas Harning Jr <harningt@gmail.com>
parents: 5
diff changeset
16 * Tests work, although there are a few remaining issues:
59287edf821b Reformatted changlog
Thomas Harning Jr <harningt@gmail.com>
parents: 5
diff changeset
17 * Need to figure a good way of preserving the event object,
59287edf821b Reformatted changlog
Thomas Harning Jr <harningt@gmail.com>
parents: 5
diff changeset
18 not sure if current method is good enough, since the socket
59287edf821b Reformatted changlog
Thomas Harning Jr <harningt@gmail.com>
parents: 5
diff changeset
19 is the only anchor, and it is only held inside the coro..
59287edf821b Reformatted changlog
Thomas Harning Jr <harningt@gmail.com>
parents: 5
diff changeset
20 circular reference, something that Lua 'handles' well.
59287edf821b Reformatted changlog
Thomas Harning Jr <harningt@gmail.com>
parents: 5
diff changeset
21 * Doing more than the maximum sockets the process is allows
59287edf821b Reformatted changlog
Thomas Harning Jr <harningt@gmail.com>
parents: 5
diff changeset
22 causes strangeness to occur in libevent.. somehow
59287edf821b Reformatted changlog
Thomas Harning Jr <harningt@gmail.com>
parents: 5
diff changeset
23 it is getting around to epoll_add which is causing valgrind
59287edf821b Reformatted changlog
Thomas Harning Jr <harningt@gmail.com>
parents: 5
diff changeset
24 to barf.
59287edf821b Reformatted changlog
Thomas Harning Jr <harningt@gmail.com>
parents: 5
diff changeset
25 * Added cheap protection code for failures in callback handlers
59287edf821b Reformatted changlog
Thomas Harning Jr <harningt@gmail.com>
parents: 5
diff changeset
26 ======
5
205a6b09e3bd Added changelog
Thomas Harning Jr <harningt@gmail.com>
parents:
diff changeset
27 0.0.0 - Revision 2 - 2007-06-10 12:00 EST
6
59287edf821b Reformatted changlog
Thomas Harning Jr <harningt@gmail.com>
parents: 5
diff changeset
28 Initial public version, was broken due to self-resume coroutines

mercurial