Skip to content

program in loop doesn't work #10

@Trootyl

Description

@Trootyl

At first I would like to say thank you, great job.

Unfortunately, I have a problem with your code. When I use it in a loop, the program creates a new process for the socket each time. After a few times the program hangs and crashes a thread in my program that works with this code. I even tried to use the close () and socket() + close() outside loop functions (crashes too). The program crashes after a few passes of the loop (sometimes at beginning, not always at the same time). I tried to debug the code (with prinf() before and after every functions) and the program crashes at different times. Sometimes read, sometimes write. Maybe you have an idea how to solve it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions