Hi!
> > >> +int safe_bind(const char *file, const int lineno, void 
> > >> (cleanup_fn)(void),
> > >> +              int socket, const struct sockaddr *address,
> > >> +              socklen_t address_len)
> > >> +{
> > >> +        int err, ret, i;
> > >> +
> > >> +        for (i = 0; i < 30; i++) {
> > 30 sec still may not be enough, I would set it to 2 minutes.
> 
> To be honest, I am not sure how long we should wait.
> 2 minutes is OK for me.

That depends on how long can TCP connection stay in the TIME_WAIT state,
googling around suggests that it's 1 minute for Linux. So IMHO anything
greater than 1 minute should do. So 2 minutes looks like good choice to
me.

-- 
Cyril Hrubis
chru...@suse.cz

------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to