| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
Awesome idea!
Built something with this library a while back and had some issues with it being thread-unsafe.
Sorry, something went wrong.
| def send_pdu(self, pdu, send_later=False) -> bool: | ||
| if send_later: | ||
| self._send_queue.append(pdu) | ||
| self._send_sock.send(b'\x00') |
There was a problem hiding this comment.
Why are we sending a 00? Is it a no-op? If so, why are we sending it?
Sorry, something went wrong.
There was a problem hiding this comment.
It is some sort of notification frame. We put it into the send socket to wake up our read socket
Sorry, something went wrong.
|
|
||
| if not rlist: | ||
| if self._should_prolong_session(): | ||
| if not auto_send_enquire_link: |
There was a problem hiding this comment.
TODO: check auto_send_enquire_link before self._should_prolong_session() call
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
I based it on #187.
Hope nobody minds)