Write an EOF marker to the memory BIO. When all data has been read, the "eof" property will be True.
ssl/MemoryBIO.write_eof
MemoryBIO.write_eof