Skip to content

Exceptions don't include the message id they are an exception for #177

Closed
@gwvandesteeg

Description

@gwvandesteeg

Issue description:
When using the async methods and polling for results using the result(msg=RES_ANY), an exception can get raised since one of the async calls generated caused the error.
The exception raised does not include the message id of the request that caused the exception.
Having 10 outstanding requests and receiving an exception for one (ie. ldap.ALREADY_EXISTS) and not knowing which request this was for since we're not receiving the msgid in the response.

Steps to reproduce:
connect to python
alternate an add and a search query using the same query three times (each) using the async methods (or randomise the order)
poll for results until you've received a response for each outstanding request.
all the searches should complete, one of the adds should complete, and two of the adds should've failed, but which add.. which message ids.

Operating system:
Linux

Python version:
2.7+

python-ldap version:
all

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions