travelping / journal-gateway-gelf

journal-gateway-gelf
8 stars 7 forks source link

let libcurl do the connection handling and pool management #2

Open hwinkel opened 8 years ago

hwinkel commented 8 years ago

https://github.com/travelping/journal-gateway-gelf/blob/master/src/journal-gateway-gelf-source.c#L190

sschindler89 commented 7 years ago

lib curl seems to create more connection than seems good for some machines. to prevent issues with to many open connections a hard cap should be configurable.

mgumz commented 7 years ago

the problem with multiple open tcp connections is fixed in https://github.com/travelping/journal-gateway-gelf/pull/13

if one wants to implement a real pool of senders, one needs to look into https://curl.haxx.se/libcurl/c/libcurl-multi.html.