Pyrebase icon indicating copy to clipboard operation
Pyrebase copied to clipboard

closing streams

Open tinkerer opened this issue 10 years ago • 2 comments

    self.resp.raw._fp.fp.raw._sock.shutdown(socket.SHUT_RDWR)
    self.resp.raw._fp.fp.raw._sock.close()

in the ssec.close function, resp.raw doesn't exist. I call my_stream.sse.resp.close() instead of my_stream.close() so that my application terminates correctly

tinkerer avatar Jun 08 '16 21:06 tinkerer

Hi @tinkerer, Pyrebase is written for python 3, this will only be a problem when using python 2.

thisbejim avatar Jun 14 '16 02:06 thisbejim

For python 2 use this https://gist.github.com/codeAshu/f6384203706e989b0d38db6e0a9d11e7

codeAshu avatar Oct 25 '17 05:10 codeAshu