- Mar 11, 2014
-
-
W. Trevor King authored
The old implementation had several instances of logic like this: if exception_condition: self.logerr("invalid request") else: # continue_processing This increases nesting after each round of exception checking, and makes the logic of the whole function harder to follow. This commit replaces that logic with: try: if exception_condition: raise InvalidRequest("invalid request") # continue peocessing except InvalidRequest, e: self.logerr(str(e)) Because the guts of the handle() function are already inside a try/except block, we can add our except clause to the existing block, and now exception checks don't increase nesting at all. The exception to this global try/except block is the 'URL has unexpected type' error, where we do want a local try/except block inside the channel loop. That way we get both errors about invalid URLs and continue to attempt valid URLs. This matches the existing logic for this check, but conflicts with the current target.valid check (which doesn't log an error and does stop processing of further channels).
-
W. Trevor King authored
We will never need the connection-time port, server_address, username, ircname, or password again, so don't store them. We *do* need server and real_server_name for Event handling, so keep them around.
-
- Feb 04, 2014
-
-
Eric S. Raymond authored
-
Alexander van Gessel authored
-
Alexander van Gessel authored
-
- Dec 25, 2013
-
-
Eric S. Raymond authored
-
Eric S. Raymond authored
-
Eric S. Raymond authored
-
Alexander van Gessel authored
-
- Dec 22, 2013
-
-
Eric S. Raymond authored
-
Eric S. Raymond authored
-
Eric S. Raymond authored
-
- Dec 04, 2013
-
-
Eric S. Raymond authored
-
Eric S. Raymond authored
-
Laurent Bachelier authored
Otherwise, it would crash if any unicode string was already present. Signed-off-by:
Eric S. Raymond <esr@thyrsus.com>
-
- Dec 03, 2013
-
-
Eric S. Raymond authored
-
- Dec 02, 2013
-
-
Eric S. Raymond authored
-
Eric S. Raymond authored
-
- Dec 01, 2013
-
-
Antoine Beaupré authored
this fixes the following backtrace: Exception happened during processing of request from ('127.0.0.1', 41192) Traceback (most recent call last): File /usr/lib/python2.7/SocketServer.py, line 295, in _handle_request_noblock self.process_request(request, client_address) File /usr/lib/python2.7/SocketServer.py, line 321, in process_request self.finish_request(request, client_address) File /usr/lib/python2.7/SocketServer.py, line 334, in finish_request self.RequestHandlerClass(request, client_address, self) File /usr/lib/python2.7/SocketServer.py, line 649, in __init__ self.handle() File ./irkerd, line 820, in handle irker.handle(line.strip()) File ./irkerd, line 786, in handle self.servers[target.server()].dispatch(target.channel, message, target.key, quit_after=quit_after) File ./irkerd, line 641, in dispatch eligibles[0].enqueue(channel, message, key) TypeError: enqueue() takes exactly 5 arguments (4 given) when running: ./irk irker-test test
-
Antoine Beaupré authored
the previous suggestion seemed to be about the update hook, but it's usually bad practice to setup notification hooks there, because if they fail, the push fails. parsing the git documentation to find exactly the incantation is not exactly trivial either...
-
Eric S. Raymond authored
-
Eric S. Raymond authored
-
Eric S. Raymond authored
-
- Nov 30, 2013
-
-
Eric S. Raymond authored
-
Eric S. Raymond authored
-
Eric S. Raymond authored
-
Eric S. Raymond authored
-
Eric S. Raymond authored
...but, alas, the server doesn't echo pings back to their sources.
-
Eric S. Raymond authored
...if we could see message traffic!
-
Eric S. Raymond authored
...immediate mode doesn't need it.
-
Eric S. Raymond authored
-
- Nov 29, 2013
-
-
Eric S. Raymond authored
We can now send messages with -i but we don't ger clean termination afterwards yet.
-
Eric S. Raymond authored
-
Eric S. Raymond authored
-
Eric S. Raymond authored
-
- Nov 27, 2013
-
-
Eric S. Raymond authored
-
Laurent Bachelier authored
Signed-off-by:
Eric S. Raymond <esr@thyrsus.com>
-
Laurent Bachelier authored
Signed-off-by:
Eric S. Raymond <esr@thyrsus.com>
-
Eric S. Raymond authored
Perplexingly, the terminate() method call doesn't.
-
- Nov 26, 2013
-
-
Alexander van Gessel authored
Signed-off-by:
Eric S. Raymond <esr@thyrsus.com>
-