View | Details | Raw Unified | Return to bug 45307
Collapse All | Expand All

(-)a/management/univention-management-console/src/univention/management/console/protocol/server.py (-1 / +2 lines)
 Lines 89-95   def _timeout_connection(self, state): Link Here 
89
		"""Closes the connection after a specified timeout"""
89
		"""Closes the connection after a specified timeout"""
90
		state.time_remaining -= 1
90
		state.time_remaining -= 1
91
91
92
		if state.time_remaining <= 0 and not state.requests:
92
		if state.time_remaining <= 0 and not state.requests and not state.session.has_active_module_processes():
93
			CORE.process('Connection timed out.')
93
			CORE.process('Connection timed out.')
94
			self._cleanup(state.socket)
94
			self._cleanup(state.socket)
95
		else:
95
		else:
 Lines 192-197   def _response(self, msg, state): Link Here 
192
			CORE.info('The given response is invalid or not known (%s)' % (msg.id,))
192
			CORE.info('The given response is invalid or not known (%s)' % (msg.id,))
193
			return
193
			return
194
194
195
		state.reset_connection_timeout()
195
		try:
196
		try:
196
			data = str(msg)
197
			data = str(msg)
197
			# there is no data from another request in the send queue
198
			# there is no data from another request in the send queue
(-)a/management/univention-management-console/src/univention/management/console/protocol/session.py (+4 lines)
 Lines 919-924   def __init__(self): Link Here 
919
		self.__locale = None
919
		self.__locale = None
920
		self._reload_acls_and_permitted_commands()
920
		self._reload_acls_and_permitted_commands()
921
921
922
	def has_active_module_processes(self):
923
		if self.processor:
924
			return self.processor._ProcessorBase__processes
925
922
	def _reload_acls(self):
926
	def _reload_acls(self):
923
		"""All unauthenticated requests are passed here. We need to set empty ACL's"""
927
		"""All unauthenticated requests are passed here. We need to set empty ACL's"""
924
		self.acls = ACLs()
928
		self.acls = ACLs()

Return to bug 45307