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

Endless loop after resume from suspend #109

Open
kotofos opened this issue Nov 22, 2022 · 0 comments
Open

Endless loop after resume from suspend #109

kotofos opened this issue Nov 22, 2022 · 0 comments

Comments

@kotofos
Copy link

kotofos commented Nov 22, 2022

After waking up from suspend pagekite seems stuck in endless loop, using 100% of core.

Another way to reproduce is to send stop and continue signals to process

strace: Process 13005 attached
read(5, 0x7fa4d80d1573, 5)              = -1 EAGAIN (Resource temporarily unavailable)
read(5, 0x7fa4d80d1573, 5)              = -1 EAGAIN (Resource temporarily unavailable)
read(5, 0x7fa4d80d1573, 5)              = -1 EAGAIN (Resource temporarily unavailable)
read(5, 0x7fa4d80d1573, 5)              = -1 EAGAIN (Resource temporarily unavailable)
...

Probably it got stuck here:

        while True:
            try:
                return self.__sock.recv(count, flags)
            except SSL.SysCallError:
                return ''
            except SSL.WantReadError:
                pass
  File "/home/kotofos/Downloads/PyPagekite-main/pagekite/__main__.py", line 42, in <module>
    http_server=httpd.UiHttpServer)
  File "/home/kotofos/Downloads/PyPagekite-main/pagekite/pk.py", line 4270, in Main
    pk.Start()
  File "/home/kotofos/Downloads/PyPagekite-main/pagekite/pk.py", line 4236, in Start
    self.Loop()
  File "/home/kotofos/Downloads/PyPagekite-main/pagekite/pk.py", line 4056, in Loop
    self.ProcessReadable(iready, throttle)
  File "/home/kotofos/Downloads/PyPagekite-main/pagekite/pk.py", line 3896, in ProcessReadable
    if conn and not (conn.fd and conn.ReadData(maxread=throttle)):
  File "/home/kotofos/Downloads/PyPagekite-main/pagekite/proto/selectables.py", line 386, in ReadData
    data = s(self.fd.recv(maxread))
  File "/home/kotofos/Downloads/PyPagekite-main/venv/lib/python2.7/site-packages/sockschain/__init__.py", line 810, in recv
    while True:

pagekite.py v1.5.2.201011!
5.14.21-150400.24.28-default #1 SMP PREEMPT_DYNAMIC Mon Oct 10 15:21:12 UTC 2022 (f82da2c) x86_64 x86_64 x86_64 GNU/Linux
openSUSE Leap 15.4

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