Ticket #73 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

Error in Test_ConnectionManager

Reported by: mike Owned by: mike
Priority: normal Milestone: alpha-test
Component: unit-tests Version: 0.1-alpha
Keywords: Cc:
Estimated Effort: 1 day Platform:
State: Relative Size:

Description

Problem

Get this error when running Test_ConnectionManager:

Traceback (most recent call last):
  File "<string>", line 1, in ?
  File "Test/RunAll.py", line 25, in ?
    import Test.Test_ConnectionManager
  File "Test/Test_ConnectionManager.py", line 210, in ?
    a.RunAllTests()
  File "/home/mike/mv3d/Test/__init__.py", line 51, in RunAllTests
    x()
  File "Test/Test_ConnectionManager.py", line 124, in Test_GetServerInterfaces
    t,dd=self.ListenConnect()
  File "Test/Test_ConnectionManager.py", line 66, in ListenConnect
    r=t.Listen()
  File "/home/mike/mv3d/Util/ConnectionManager.py", line 269, in Listen
    d=reactor.listenTCP(port, pb.PBServerFactory(p))
  File "/usr/lib/python2.4/site-packages/twisted/internet/posixbase.py", line 38
6, in listenTCP
    p.startListening()
  File "/usr/lib/python2.4/site-packages/twisted/internet/tcp.py", line 711, in
startListening
    raise CannotListenError, (self.interface, self.port, le)
twisted.internet.error.CannotListenError: Couldn't listen on any:1999: (98, 'Add
ress already in use').

Change History

Changed 6 years ago by mike

  • status changed from new to closed
  • resolution set to fixed

Solution

After calling StopListening?, reactor.iterate() wasn't called to close the connection for real. Added that, though it may want to check if the reactor is running before doing that.

Note: See TracTickets for help on using tickets.