Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

recv() block process #71

Open
FMLS opened this issue Jan 5, 2018 · 0 comments
Open

recv() block process #71

FMLS opened this issue Jan 5, 2018 · 0 comments

Comments

@FMLS
Copy link

FMLS commented Jan 5, 2018

hi, I use this lib in my project, in one process, I use a Connection to put message into a tube, after running several hours, I found that the process is blocked. I use strace -p to record the history, the last record are:

getpid()                                = 22953
sendto(17, "put 2147483648 0 120 353\r\n{\"user"..., 381, 0, NULL, 0) = 381
recvfrom(17,

obviously, the connection with beanstalkd blocked, and in beanstalkc.py, I found the code:

        self._socket.settimeout(None)
        self._socket_file = self._socket.makefile('rb')

the socket is block mode, I guess it is a possibility of blocking.

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

No branches or pull requests

1 participant