'Returns this fake socket\'s own StringIO buffer.
If there is an entry associated with the socket, the file
descriptor gets filled in with the entry data before being
returned.'

def makefile(self, mode=u'r', bufsize=(-1)):

    self._mode = mode
    self._bufsize = bufsize
    if self._entry:
        self._entry.fill_filekind(self.fd)
    return self.fd
