Nathan French
Nathan French
Getting unexpected NULL's sounds like a thread race-condition to me. Are you able to post more of the code, like the event initialization?
I'm not sure if what you are doing here works as there is a race condition between evhttp processing and your manual event processing. Have you tried enabling debug logs...
```C #if defined(_MSC_VER) && _MSC_VER >= 1500 /* MSVC 2008 */ # define DEPRECATED(message) __declspec(deprecated(message)) #elif defined(__clang__) && defined(__has_feature) # if __has_feature(attribute_deprecated_with_message) # define DEPRECATED(message) __attribute__ ((deprecated(message))) # endif #...
@azat maybe something like this prototype https://github.com/NathanFrench/libevent/commit/dda4575ce272fe3422d3681c05c378708a384750 ?
If you remove `usleep`, does it work?
This is very very hard to reproduce with almost 0 information (your backtrace doesn't even have debug symbols, from what I see, the error is in libevent, not evhtp). Can...
Added user-defined malloc/free functionality here https://github.com/criticalstack/libevhtp/commit/73b54c67653e5d0658de83be0276e9316a3bba39 Reference counting casts are easy from here.
https://gist.github.com/NathanFrench/60573fcb5bd5a7b980eaf4e3feff9dd7
Sounds like you're going through quite the hellish time. I'll have to get a windows license, which shouldn't be a problem. I'll get back to you asap.
Awesome, I'm still waiting on a windows license. Please submit pull requests as you go along; I want you to get credit for your hard work.