Univention Bugzilla – Attachment 6339 Details for
Bug 36561
Traceback: "Connection reset by peer" on network reconfiguration not handled
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
bug36561.patch (text/plain), 1.53 KB, created by
Florian Best
on 2014-11-11 12:37:28 CET
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Florian Best
Created:
2014-11-11 12:37:28 CET
Size:
1.53 KB
patch
obsolete
>diff --git a/ucs-4.0-0/management/univention-management-console/src/univention/management/console/protocol/modserver.py b/ucs-4.0-0/management/univention-management-console/src/univention/management/console/protocol/modserver.py >index ed5fa80..59338b9 100644 >--- a/ucs-4.0-0/management/univention-management-console/src/univention/management/console/protocol/modserver.py >+++ b/ucs-4.0-0/management/univention-management-console/src/univention/management/console/protocol/modserver.py >@@ -145,23 +145,23 @@ class ModuleServer(Server): > self.__client = client > notifier.socket_add(self.__comm, self._recv) > >- def _recv(self, socket): >+ def _recv(self, sock): > try: >- data = socket.recv(RECV_BUFFER_SIZE) >- except socket.error, ex: >- MODULE.error('Failed connection: %s' % (errno.errorcode.get(ex.errno, ex.errno),)) >+ data = sock.recv(RECV_BUFFER_SIZE) >+ except socket.error as exc: >+ MODULE.error('Failed connection: %s' % (errno.errorcode.get(exc.errno, exc.errno),)) > data = None > > # connection closed? > if not data: >- socket.close() >- if socket == self.__comm: >+ sock.close() >+ if sock == self.__comm: > MODULE.info('UMC server connection closed. This module is no longer in use.') > # the connection to UMC server connection has been closed/died/... > # so from now on this module is unused. Thus it is committing suicide right now. > self._timed_out() > else: >- MODULE.info('Connection %r closed' % (socket,)) >+ MODULE.info('Connection %r closed' % (sock,)) > # remove socket from notifier > return False >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 36561
: 6339