-- Leo's gemini proxy

-- Connecting to git.thebackupbox.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

repo: urcd
action: commit
revision:
path_from:
revision_from: a866a5b63c7959173bf38a9dd4c7270810572ec7:
path_to:
revision_to:

git.thebackupbox.net

urcd

git://git.thebackupbox.net/urcd

commit a866a5b63c7959173bf38a9dd4c7270810572ec7
Author: root <root@d3v11.ano>
Date:   Mon Feb 18 23:15:22 2013 +0000

    [src/urc2sd.pyx] improve poll && limit from last fix

diff --git a/src/urc2sd.pyx b/src/urc2sd.pyx

index 712cae588fa289db98988fe7efdb4676ef187a06..

index ..56511115a915a3b4fa2821a5cc781fc364da6f36 100644

--- a/src/urc2sd.pyx
+++ b/src/urc2sd.pyx
@@ -86,7 +86,7 @@ def client_poll():

 def server_poll():
   return len( server_POLLIN.poll(256-
-    (256*client_poll())
+    (256*len( client_POLLIN.poll(0)))
   ))

 def try_write(fd,buffer):
@@ -219,7 +219,7 @@ while 1:

     EOF() if EOF else EOF

-  while server_poll():
+  while (server_poll() and limit()):

     buffer = os.read(sd,1024)
     if not buffer:

-----END OF PAGE-----

-- Response ended

-- Page fetched on Sun Jun 2 16:50:06 2024