mailru / graphite-nginx-module

An nginx module for collecting stats into Graphite
135 stars 34 forks source link

added extra parameter to configure protocol between tcp and udp #13

Closed gg83 closed 7 years ago

gg83 commented 7 years ago

I removed the FD_ISSET part since there is no calling select().

kirimedia commented 7 years ago

I merged the pull request with small fixes.

  1. Use portable code to change the socket flags.
  2. Close the socket in case of errors in order to avoid leaks.
  3. Code formating.