Document if Sender is fork-safe. #60
Comments
|
It depends on Python's socket implementation. |
|
I'm interested in this as well, having some issues getting async handler sending to a remote fluentd host with a basic gunicorn + Django deployment |
|
|
|
Generally-speaking NO threaded application is fork-safe. Forks and threads are not compatible as POSIX mandates killing all threads upon forking. Sync sender should be safe. |
|
If you want the fD survive you will need to make sure the worker inherit from it at the system level. This can be done similarly to what does the logging handler. |
Consider a scenario where:
Will the socket get cloned or reopened?
Does fluent logger expect a response from fluentd?
If it does, can the response be read out by wrong sender process?
The text was updated successfully, but these errors were encountered: