From: SourceForge.net <no...@so...> - 2007-07-15 08:37:06
|
Bugs item #1754240, was opened at 2007-07-15 08:37 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1754240&group_id=12867 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Bob Luse (rluse) Assigned to: Nobody/Anonymous (nobody) Summary: Error Message when attempting to bind to an in use Port Initial Comment: When attempting to bind to an in use port, the error message is Permission Denied, which I think is misleading. I would recommend that Jython use the same Message the Python uses "Port already in use". You can create the problem by running the following simple script twice: import select import socket import sys host = '' port = 50000 server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) server.bind((host,port)) server.listen(5) server.setblocking(False) input = [server] running = True while running: inputready,outputready,exceptready = \ select.select(input,[],[]) time.sleep(0.01) The second time you run it, it will say permission denied. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1754240&group_id=12867 |