Roxen.git
/
server
/
etc
/
test
/
tests
/
http
/
http_common.pike
version
»
Context lines:
10
20
40
80
file
none
3
Roxen.git/server/etc/test/tests/http/http_common.pike:12:
// 10 is error-in-execution from pike. constant HEADERS = 11; constant DATA = 12; constant CONN = 13; constant TIMEOUT = 99; constant BADARG = 100; void setup_timeout( ) {
-
void timeout() { exit( TIMEOUT ); };
+
#ifndef __NT__
-
+
void timeout() { exit( TIMEOUT ); };
signal( 14, timeout );
-
alarm(
5
);
+
alarm(
30
);
#endif } array get_host_port( string url ) { string host; int port; if( sscanf( url, "http://%s:%d/", host, port ) != 2 ) exit( BADARG );