* ftp.c:
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
- * $Id: ftp.c,v 1.10 2003/03/24 17:15:29 gbazin Exp $
+ * $Id: ftp.c,v 1.11 2003/03/24 19:12:16 gbazin Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
FD_SET( p_socket->i_handle, &fds );
/* We'll wait 1 second if nothing happens */
- timeout.tv_sec = 0;
- timeout.tv_usec = 1000000;
+ timeout.tv_sec = 1;
+ timeout.tv_usec = 0;
/* Find if some data is available */
while( (i_ret = select( p_socket->i_handle + 1, &fds,
NULL, NULL, &timeout )) == 0
|| (i_ret < 0 && errno == EINTR) )
{
+ timeout.tv_sec = 1;
+ timeout.tv_usec = 0;
+
if( p_input->b_die || p_input->b_error )
{
return 0;
* http.c: HTTP access plug-in
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
- * $Id: http.c,v 1.28 2003/03/24 17:15:29 gbazin Exp $
+ * $Id: http.c,v 1.29 2003/03/24 19:12:16 gbazin Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
#endif
)
{
+ timeout.tv_sec = 0;
+ timeout.tv_usec = 500000;
+
if( p_input->b_die || p_input->b_error )
{
return 0;
* mms.c: MMS access plug-in
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
- * $Id: mms.c,v 1.28 2003/03/24 17:15:29 gbazin Exp $
+ * $Id: mms.c,v 1.29 2003/03/24 19:12:16 gbazin Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
NULL, NULL, &timeout )) == 0
|| (i_ret < 0 && errno == EINTR) )
{
+ timeout.tv_sec = 0;
+ timeout.tv_usec = 500000;
+
if( p_input->b_die || p_input->b_error )
{
return 0;
* udp.c: raw UDP & RTP access plug-in
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
- * $Id: udp.c,v 1.16 2003/03/24 17:15:29 gbazin Exp $
+ * $Id: udp.c,v 1.17 2003/03/24 19:12:16 gbazin Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Tristan Leteurtre <tooney@via.ecp.fr>
NULL, NULL, &timeout )) == 0
|| (i_ret < 0 && errno == EINTR) )
{
+ timeout.tv_sec = 0;
+ timeout.tv_usec = 500000;
+
if( p_input->b_die || p_input->b_error )
{
return 0;