Code Monkey home page Code Monkey logo

esasl's People

Contributors

depressed-pho avatar mikma avatar mtdcr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

esasl's Issues

File descriptor leakage

Hi!

When used with ejabberd it seems like gsasl_drv leaks an file descriptor everytime someone connects:

# lsof -p `pgrep gsasl_drv` | grep xmpp_
gsasl_drv 29209 jabber    3u   REG    8,1     1651  258494 /var/tmp/xmpp_0
gsasl_drv 29209 jabber    4u   REG    8,1     1651  258494 /var/tmp/xmpp_0
gsasl_drv 29209 jabber    5u   REG    8,1     1651  258494 /var/tmp/xmpp_0
gsasl_drv 29209 jabber    6u   REG    8,1     1651  258494 /var/tmp/xmpp_0
gsasl_drv 29209 jabber    7u   REG    8,1     1651  258494 /var/tmp/xmpp_0
gsasl_drv 29209 jabber    8u   REG    8,1     1651  258494 /var/tmp/xmpp_0

When it hits 130 file descriptors it stops accepting authentications.

I'm realizing that this is probably an gsasl issue but didn't find any fixes for filedescriptor leaks in their NEWS or git logs.

I've tried to find the leak myself but my C and erlang skills are too weak = )

Versions:
ejabberd: 2.1.x
esasl: master

# dpkg -l '*sasl*' | grep '^ii'
ii  libauthen-sasl-cyrus-perl             0.13-server-5                             Perl extension for Cyrus SASL library
ii  libauthen-sasl-perl                   2.13-1                                    Authen::SASL - SASL Authentication framework
ii  libgsasl7                             1.4.4-1ubuntu1                            GNU SASL library
ii  libsasl2-2                            2.1.23.dfsg1-5ubuntu1                     Cyrus SASL - authentication abstraction libr
ii  libsasl2-modules                      2.1.23.dfsg1-5ubuntu1                     Cyrus SASL - pluggable authentication module
ii  libsasl2-modules-gssapi-heimdal       2.1.23.dfsg1-5ubuntu1                     Pluggable Authentication Modules for SASL (G
# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 10.04.4 LTS
Release:        10.04
Codename:       lucid

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.