Yes. traci.start accepts the port as optional second argument. Am Do., 2. Mai 2019 um 17:08 Uhr schrieb <[email protected]>:
> Hi Jakob, > > now I am sure this error was caused by the port whose address was already > in use. "FatalTraciError" said the connection could not be established in > 11 tries due to address already in use. I used Python in Ubuntu. Can I > manually assign the port address when the simulation is ready to start? > > Thanks, > > Yu Tang > > -----原始邮件----- > *发件人:*[email protected] > *发送时间:*2019-04-11 10:34:13 (星期四) > *收件人:* "Sumo project User discussions" <[email protected]> > *抄送:* > *主题:* Re: Re: [sumo-user] Question about port already in use > > Hi, Jakob, > > Thanks for your reply. Now what is confusing me is the sudden abort of > sumo as shown in the attachment. The program written in python runs SUMO in > Ubuntu. After running about 600 simulations, the program has stopped > suddenly. There are no warnings or bugs shown, just "Retrying in 1 seconds" > and "Retrying in 1 seconds". I suspect this is caused by the port already > in use. But it seems not since there is no related error message. > > Best, > > Yu Tang > > > -----原始邮件----- > *发件人:*"Jakob Erdmann" <[email protected]> > *发送时间:*2019-04-09 21:49:22 (星期二) > *收件人:* "Sumo project User discussions" <[email protected]> > *抄送:* > *主题:* Re: [sumo-user] Question about port already in use > > if you are using the python client, a free socket port should be > automatically obtained when calling traci.start(). > If you are using the C++ client, you can use the method > getFreeSocketPort() from src/foreign/tcpip/socket.h > > regards, > Jakob > > Am So., 7. Apr. 2019 um 20:43 Uhr schrieb <[email protected]>: > >> >> Hi guys, >> >> I am running a bunch of simulation with the help of traci. But sometimes >> the program is forced to stop due to the error "Error: >> tcpip::Socket::accept() Unable to create listening socket: Address already >> in use Quitting (on error)." >> >> My question is whether the program can automatically handle with the >> error and find the appropriate port. >> >> Can anybody help me with this problem? >> >> Thank you. >> >> Yu Tang >> _______________________________________________ >> sumo-user mailing list >> [email protected] >> To change your delivery options, retrieve your password, or unsubscribe >> from this list, visit >> https://www.eclipse.org/mailman/listinfo/sumo-user >> > _______________________________________________ > sumo-user mailing list > [email protected] > To change your delivery options, retrieve your password, or unsubscribe > from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user >
_______________________________________________ sumo-user mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
