Ignore:
Timestamp:
Aug 21, 2009, 12:13:43 PM (15 years ago)
Author:
ecprice
Message:

Clear stale fds out of cache in ajaxterm

File:
1 edited

Legend:

Unmodified
Added
Removed
  • package_branches/invirt-web/cherrypy/code/main.py

    r2449 r2450  
    311311                else:
    312312                    print >>sys.stderr, "spawning new session for terminal to ",machine_id
    313                     term = self.atsessions[machine_id] = self.atmulti.create(
     313                    term = self.atmulti.create(
    314314                        ["ssh", "-e","none", "-l", machine.name, config.console.hostname]
    315315                        )
     316                    # Clear out old sessions when fd is reused
     317                    for key in self.atsessions:
     318                        if self.atsessions[key] == term:
     319                            del self.atsessions[key]
     320                    self.atsessions[machine_id] = term
    316321                if k:
    317322                    self.atmulti.proc_write(term,k)
Note: See TracChangeset for help on using the changeset viewer.