这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@savar
Copy link
Contributor

@savar savar commented Apr 19, 2013

  • getaddrinfo is alread allocating the addrinfo struct so we get a
    (quiet small) memory hole
  • now checking if malloc failed for whatever reason
  • free allocated memory in case of an error (otherwise we 'could'
    take all available memory when having a connect failure on each
    statsd call)
  • TODO if I startup a varnish and put all traffic at once on it the
    freeaddrinfo is failing (in libjemalloc/jemalloc_linux.c) and I
    don't know why. Probably this is a bug in the libjemalloc but I'm
    not sure about that, maybe it is a problem with multithreading (many
    of them tries to connect but a fprintf() debugging doesn't show
    something like that)..

* getaddrinfo is alread allocating the addrinfo struct so we get a
  (quiet small) memory hole
* now checking if malloc failed for whatever reason
* TODO if I startup a varnish and put all traffic at once on it the
  freeaddrinfo is failing (in libjemalloc/jemalloc_linux.c) and I
  don't know why. Probably this is a bug in the libjemalloc but I'm
  not sure about that.
jib added a commit that referenced this pull request Apr 20, 2013
@jib jib merged commit f91b07d into jib:master Apr 20, 2013
@jib
Copy link
Owner

jib commented Apr 20, 2013

Thanks for your contribution - merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants