<?xml version="1.0"?>
-<Opengate ConfigVersion="1.4.11">
+<Opengate ConfigVersion="1.4.16">
<!-- #################################################
# ####### NEED TO MODIFY FOLLOWING PARAMETERS ##### -->
</ListenPort>
<!-- communication reply timeout(second) -->
- <CommWaitTimeout>10</CommWaitTimeout>
+ <CommWaitTimeout>30</CommWaitTimeout>
<!-- Java connection timeout(second) -->
<JavaWaitTimeout>600</JavaWaitTimeout>
<!-- http reconnect timeout(second) -->
- <ReconnectTimeout>10</ReconnectTimeout>
+ <ReconnectTimeout>30</ReconnectTimeout>
<!-- ipfw exclusive exec lock timeout (second) -->
<LockTimeout>10</LockTimeout>
<DD>\r
Fix bug at dumping micro-second time information. \r
</DD>\r
+<DT>\r
+Ver.1.4.16 at 2007.4.15</DT>\r
+<DD>\r
+Fix bug for delayed favicon.ico request occured on Vista PC and others.\r
+</DD>\r
\r
</DL>\r
<b>Please see CVS in SourceForge.net to check the file difference between versions.</b>\r
var nextKey;
var nowKey;
var sessionId;
+var initial;
function createXMLHttpRequest() {
try { return new ActiveXObject("Msxml2.XMLHTTP"); } catch(e) {}
hh=today.getHours(); mm=today.getMinutes();
if(hh<10)hh='0'+hh; if(mm<10)mm='0'+mm;
document.getElementById("dispmsg").innerHTML = hh+':'+mm;
- if(httpObj.responseText=="hello") sendHello();
+ if(httpObj.responseText=="hello"){
+ if(initial==1){
+ setTimeout('sendHello()',10000);
+ initial=0;
+ }else{
+ sendHello();
+ }
+ }
}else{
document.getElementById("dispmsg").innerHTML = "Error!";
}
sessionId=sid;
rand=Math.random();
nextKey=hex_md5(String(rand));
+ initial=1;
- // set timeout and send hello
+ // send hello
sendHello();
}
//-->
#include "opengatesrv.h"
#include "../ezxml/ezxml.h"
-#define CONFIG_VERSION "1.4.11"
+#define CONFIG_VERSION "1.4.16"
#define SEPARATOR "/"
int debug=0;
}
/* null terminate string */
*ptr++ = 0;
+
return(n);
}
int MacAddrCheck(int ipStatus,char *clientAddr4, char *clientAddr6, char *macAddr4, char *macAddr6);
int IsRightKey(char *pNowKey, char *sessionId);
void SendHttpReply(char *reply);
+void SendHttpNotFound(void);
void OnUsageTimeLimitAlarm(int signo);
void OnCheckBasicAlarm(int signo);
}
/* other request is ignored */
+ if(strstr(buff, "GET /")==buff){
+ ReadHttpHeaders();
+ SendHttpNotFound();
+ }
Close(connfd);
continue;
}
/* read other string */
else{
+
+ /* read request and reply not found */
+ ReadHttpHeaders();
+ SendHttpNotFound();
}
}
+
else{
/*abnormal read */
/* some alarm is ringed or connecion is closed */
Writefmt(connfd,"\r\n");
}
+/*************************************************************/
+/* send NOT FOUND reply to unknown http request */
+/*************************************************************/
+void sendHttpNotFound(void)
+{
+ /* send HTTP headers */
+ Writefmt(connfd,"HTTP/1.1 404\r\n");
+ Writefmt(connfd,"\r\n");
+}
+
/***************************************************/
/***************************************************/
void GetPeerAddr(int sockfd, char *peerAddr)
+void SendHttpNotFound(void){
+ if(debug>1) err_msg("DEBUG:=>sendHttpNotFound()");
+ sendHttpNotFound();
+ if(debug>1) err_msg("DEBUG:<=sendHttpNotFound()");
+}