Skip to content

Instantly share code, notes, and snippets.

@mahmoud
Forked from kurtbrose/cython_pdb.txt
Last active March 17, 2016 22:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mahmoud/99fedb2cf51c75a81969 to your computer and use it in GitHub Desktop.
Save mahmoud/99fedb2cf51c75a81969 to your computer and use it in GitHub Desktop.
Cython is amazing
(Pdb) w
<stdin>(1)<module>()
c:\old_user\workspace\cyopenssl\test\_test.py(117)session_test()
-> tls_c.send('hello')
c:\old_user\workspace\cyopenssl\test\cyopenssl\openssl.pyx(680)cyopenssl.openssl.Socket.send (cyopenssl/openssl.c:6673)()
> c:\old_user\workspace\cyopenssl\test\cyopenssl\openssl.pyx(776)cyopenssl.openssl.Socket._do_ssl (cyopenssl/openssl.c:8320)()
(Pdb) l
771 elif err == SSL_ERROR_SSL:
772 raise SSLError("SSL_ERROR_SSL")
773 elif err == SSL_ERROR_WANT_READ:
774 # xfer data from socket to BIO
775 self._update_timeout(start)
776 -> io_size = self.sock.recv_into(self.buf)
777 if io_size == 0:
778 return 0
779 BIO_write(self.rbio, <char *>self.buf, io_size)
780 # raise SSLWantRead()
781 elif err == SSL_ERROR_WANT_WRITE:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment