Skip to content

EBADF error exception from urlfetcher #16

Description

@toshic

In boost_socket_info constructor (file swarm/urlfetcher/boost_event_loop.cpp:38) dup() syscall is used without return value checks. If application hits the max open files limit dup() returns -1 and urlfetcher throws boost asio exceptions.

Example:
terminate called after throwing an instance of 'boost::exception_detail::clone_implboost::exception_detail::error_info_injector<boost::system::system_error >'
what(): Bad file descriptor

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions