I have the following operation in my refresh function which works with the WSGI server: readable, writeable, _ = select.select(rsockets, [], [], 1) and
refresh
readable, writeable, _ = select.select(rsockets, [], [], 1)