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:15:
constant CONN = 13; constant TIMEOUT = 99; constant BADARG = 100; void setup_timeout( ) { void timeout() { exit( TIMEOUT ); }; #ifndef __NT__ 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 );