Req #12802 [Com]: gethostbyname/gethostbyaddr timeout

2013-08-21 Thread zach dot bailey at pardot dot com
Edit report at https://bugs.php.net/bug.php?id=12802edit=1

 ID: 12802
 Comment by: zach dot bailey at pardot dot com
 Reported by:cheapsalsa at yahoo dot com
 Summary:gethostbyname/gethostbyaddr timeout
 Status: Assigned
 Type:   Feature/Change Request
 Package:*General Issues
 PHP Version:*
 Assigned To:pajoye
 Block user comment: N
 Private report: N

 New Comment:

Please, please, please consider adding this. It's a huge 
scalability/performance 
issue anytime a call out to an external service is not bounded with a timeout. 
PHP 
users are having to resort to ridiculous workarounds to something that should 
be 
built into the core language. It's unfathomable that PHP has functions like the 
ability to get the time that the sun will rise for a certain date and location 
but 
it can't be bothered with having a timeout on an extremely common function.


Previous Comments:

[2012-09-25 12:34:49] tyr...@php.net

any progress on this?


[2010-11-19 02:06:51] paj...@php.net

It will be available when committed.


[2010-11-19 01:37:47] tyra3l at gmail dot com

can I access that implementation from userspace right now?
if there is a way, then it's fine for me as is, but I wouldn't dare to change 
the 
current implementation of those functions.
so maybe the best would be to add new userspace functions for the async 
behaviour.

Tyrael


[2010-11-19 01:07:41] paj...@php.net

We have an implementation, only a matter of using it instead of get*. I have 
some patch for that, adding some features for the DNS APIs. It should be easy 
to modify this function while being at it.


[2010-11-19 00:53:25] tyra3l at gmail dot com

maybe we could use some non-blocking dns library?
http://c-ares.haxx.se/

Tyrael




The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

https://bugs.php.net/bug.php?id=12802


-- 
Edit this bug report at https://bugs.php.net/bug.php?id=12802edit=1


Req #12802 [Com]: gethostbyname/gethostbyaddr timeout

2010-11-18 Thread tyra3l at gmail dot com
Edit report at http://bugs.php.net/bug.php?id=12802edit=1

 ID: 12802
 Comment by: tyra3l at gmail dot com
 Reported by:cheapsalsa at yahoo dot com
 Summary:gethostbyname/gethostbyaddr timeout
 Status: Open
 Type:   Feature/Change Request
 Package:*General Issues
 Operating System:   Linux (N/A)
 PHP Version:4.0CVS-2001-08-16
 Block user comment: N
 Private report: N

 New Comment:

maybe we could use some non-blocking dns library?

http://c-ares.haxx.se/



Tyrael


Previous Comments:

[2010-11-19 00:05:31] paj...@php.net

For the record, it is not possible to do it in PHP. These functions are
implemented by the operating systems. Without creating a thread for the
get* hosts, we won't have any control on the timeout.


[2010-03-04 16:34:30] tyra3l at gmail dot com

bump


[2009-03-04 19:19:12] adifranco at tagged dot com

Any intent to fix this?  This kind of indeterminism is very crippling to
trying to use these functions in a feature that interacts with the user.


[2003-08-10 22:54:12] grimtraffic at hotmail dot com

To be honest, no timeout has really made it hard to log users. There is
no point of logging IP's because they change too often for dial-up
users, and with my page timing out every third time someone goes to it,
I now have troubles. 

By the way, 2 out of 3 who use gethostbyaddr have an issue with it
timing out constantly.


[2003-02-05 06:19:54] sergi at millorsoft dot es

Is this bug still open? I think it's a really important bug and can
cause very long retards when the DNS lookup doesn't respond or some DNS
server is unreacheable.




The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

http://bugs.php.net/bug.php?id=12802


-- 
Edit this bug report at http://bugs.php.net/bug.php?id=12802edit=1


Req #12802 [Com]: gethostbyname/gethostbyaddr timeout

2010-11-18 Thread tyra3l at gmail dot com
Edit report at http://bugs.php.net/bug.php?id=12802edit=1

 ID: 12802
 Comment by: tyra3l at gmail dot com
 Reported by:cheapsalsa at yahoo dot com
 Summary:gethostbyname/gethostbyaddr timeout
 Status: Assigned
 Type:   Feature/Change Request
 Package:*General Issues
 PHP Version:4.0CVS-2001-08-16
 Assigned To:pajoye
 Block user comment: N
 Private report: N

 New Comment:

can I access that implementation from userspace right now?

if there is a way, then it's fine for me as is, but I wouldn't dare to
change the 

current implementation of those functions.

so maybe the best would be to add new userspace functions for the async
behaviour.



Tyrael


Previous Comments:

[2010-11-19 01:07:41] paj...@php.net

We have an implementation, only a matter of using it instead of get*. I
have some patch for that, adding some features for the DNS APIs. It
should be easy to modify this function while being at it.


[2010-11-19 00:53:25] tyra3l at gmail dot com

maybe we could use some non-blocking dns library?

http://c-ares.haxx.se/



Tyrael


[2010-11-19 00:05:31] paj...@php.net

For the record, it is not possible to do it in PHP. These functions are
implemented by the operating systems. Without creating a thread for the
get* hosts, we won't have any control on the timeout.


[2010-03-04 16:34:30] tyra3l at gmail dot com

bump


[2009-03-04 19:19:12] adifranco at tagged dot com

Any intent to fix this?  This kind of indeterminism is very crippling to
trying to use these functions in a feature that interacts with the user.




The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

http://bugs.php.net/bug.php?id=12802


-- 
Edit this bug report at http://bugs.php.net/bug.php?id=12802edit=1


Req #12802 [Com]: gethostbyname/gethostbyaddr timeout

2010-03-04 Thread
Edit report at http://bugs.php.net/bug.php?id=12802edit=1

 ID:   12802
 Comment by:   
 Reported by:  cheapsalsa at yahoo dot com
 Summary:  gethostbyname/gethostbyaddr timeout
 Status:   Open
 Type: Feature/Change Request
 Package:  Feature/Change Request
 Operating System: Linux (N/A)
 PHP Version:  4.0CVS-2001-08-16

 New Comment:

bump


Previous Comments:

[2009-03-04 19:19:12] adifranco at tagged dot com

Any intent to fix this?  This kind of indeterminism is very crippling to
trying to use these functions in a feature that interacts with the user.


[2003-08-10 22:54:12] grimtraffic at hotmail dot com

To be honest, no timeout has really made it hard to log users. There is
no point of logging IP's because they change too often for dial-up
users, and with my page timing out every third time someone goes to it,
I now have troubles. 

By the way, 2 out of 3 who use gethostbyaddr have an issue with it
timing out constantly.


[2003-02-05 06:19:54] sergi at millorsoft dot es

Is this bug still open? I think it's a really important bug and can
cause very long retards when the DNS lookup doesn't respond or some DNS
server is unreacheable.


[2001-08-16 21:03:38] cheapsalsa at yahoo dot com

I propose creating a timeout argument on the gethostbyname and
gethostbyaddr.  I have a script that uses these, and if my internet
connection goes down it takes 1:30-2:00 minutes for 3 gethostbyname's to
timeout.  This is way to long, and it would help if I could specify a
timeout.





-- 
Edit this bug report at http://bugs.php.net/bug.php?id=12802edit=1


#12802 [Com]: gethostbyname/gethostbyaddr timeout

2009-03-04 Thread adifranco at tagged dot com
 ID:   12802
 Comment by:   adifranco at tagged dot com
 Reported By:  cheapsalsa at yahoo dot com
 Status:   Open
 Bug Type: Feature/Change Request
 Operating System: Linux (N/A)
 PHP Version:  4.0CVS-2001-08-16
 New Comment:

Any intent to fix this?  This kind of indeterminism is very crippling
to trying to use these functions in a feature that interacts with the
user.


Previous Comments:


[2003-08-10 22:54:12] grimtraffic at hotmail dot com

To be honest, no timeout has really made it hard to log users. There is
no point of logging IP's because they change too often for dial-up
users, and with my page timing out every third time someone goes to it,
I now have troubles. 
By the way, 2 out of 3 who use gethostbyaddr have an issue with it
timing out constantly.



[2003-02-05 06:19:54] sergi at millorsoft dot es

Is this bug still open? I think it's a really important bug and can
cause very long retards when the DNS lookup doesn't respond or some DNS
server is unreacheable.



[2001-08-16 21:03:38] cheapsalsa at yahoo dot com

I propose creating a timeout argument on the gethostbyname and
gethostbyaddr.  I have a script that uses these, and if my internet
connection goes down it takes 1:30-2:00 minutes for 3 gethostbyname's to
timeout.  This is way to long, and it would help if I could specify a
timeout.




-- 
Edit this bug report at http://bugs.php.net/?id=12802edit=1



#12802 [Com]: gethostbyname/gethostbyaddr timeout

2003-08-14 Thread grimtraffic at hotmail dot com
 ID:   12802
 Comment by:   grimtraffic at hotmail dot com
 Reported By:  cheapsalsa at yahoo dot com
 Status:   Open
 Bug Type: Feature/Change Request
 Operating System: Linux (N/A)
 PHP Version:  4.0CVS-2001-08-16
 New Comment:

To be honest, no timeout has really made it hard to log users. There is
no point of logging IP's because they change too often for dial-up
users, and with my page timing out every third time someone goes to it,
I now have troubles. 
By the way, 2 out of 3 who use gethostbyaddr have an issue with it
timing out constantly.


Previous Comments:


[2003-02-05 06:19:54] sergi at millorsoft dot es

Is this bug still open? I think it's a really important bug and can
cause very long retards when the DNS lookup doesn't respond or some DNS
server is unreacheable.



[2001-08-16 21:03:38] cheapsalsa at yahoo dot com

I propose creating a timeout argument on the gethostbyname and
gethostbyaddr.  I have a script that uses these, and if my internet
connection goes down it takes 1:30-2:00 minutes for 3 gethostbyname's
to timeout.  This is way to long, and it would help if I could specify
a timeout.




-- 
Edit this bug report at http://bugs.php.net/?id=12802edit=1



#12802 [Com]: gethostbyname/gethostbyaddr timeout

2003-02-05 Thread sergi
 ID:   12802
 Comment by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: Feature/Change Request
 Operating System: Linux (N/A)
 PHP Version:  4.0CVS-2001-08-16
 New Comment:

Is this bug still open? I think it's a really important bug and can
cause very long retards when the DNS lookup doesn't respond or some DNS
server is unreacheable.


Previous Comments:


[2001-08-16 21:03:38] [EMAIL PROTECTED]

I propose creating a timeout argument on the gethostbyname and
gethostbyaddr.  I have a script that uses these, and if my internet
connection goes down it takes 1:30-2:00 minutes for 3 gethostbyname's
to timeout.  This is way to long, and it would help if I could specify
a timeout.




-- 
Edit this bug report at http://bugs.php.net/?id=12802edit=1