libasync
libasync copied to clipboard
Cross-platform event loop library of asynchronous objects
This struct's alignment has popped up again to cause you some more grief :) This time it needs to be UNpacked. Details in the link. http://bugzilla.gdcproject.org/show_bug.cgi?id=214
I'm working on writing a UDP based application, if my application receives certain ICMP packets it will trigger a READ event then when trying to read from the socket it...
``` * thread #2: tid = 0xacca0, 0x00000001000b4b81 dude`D8libasync5posix13EventLoopImpl4loopMFNbS4core4time8DurationZb + 1041, stop reason = EXC_BAD_ACCESS (code=EXC_I386_GPFLT) * frame #0: 0x00000001000b4b81 dude`D8libasync5posix13EventLoopImpl4loopMFNbS4core4time8DurationZb + 1041 frame #1: 0x0000000100099bb4 dude`D8libasync6events9EventLoop4loopMFNbS4core4time8DurationZb + 68 frame...
the title says it all. this segfaults: ``` conn.write(msg,msg.length); ``` this doesn't: ``` conn.write(msg,msg.length,(conn){}); ```
I've used libasync to my project, dub run is ok, but I benachmarked with apache ab tool , showing Benchmarking localhost (be patient)...apr_socket_recv: Connection refused (111) command : ab -n...
The O_EVTONLY you're using is O_NOCTTY on FreeBSD. https://github.com/etcimon/libasync/blob/ac77a6c68f5f0c2512858d811cb8c959fbf8de41/source/libasync/internals/kqueue.d#L62 I'd suggest to use O_RDONLY on FreeBSD as a replacement. Most of the constants in this file are available in druntime,...
Hi, nice library! Have you done any benchmarks of it? Thanks
Hi @etcimon. Do you know if the lib should work on Alpine docker container? I faced with this error: /root/.dub/cache/libasync/~master/build/regular-release-RNnj5zspAaZtWLsA4BwBbA/libasync.a(libasync.posix.o): in function `_D8libasync5posix13EventLoopImpl6notifyMFNbIiOCQBt6signal11AsyncSignalZb': posix.d:(.text._D8libasync5posix13EventLoopImpl6notifyMFNbIiOCQBt6signal11AsyncSignalZb+0x1d): undefined reference to `pthread_sigqueue'