Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
1668bca970
|
@ -392,7 +392,7 @@ void* manageCtrlTerm(void* THREADABLE_ARGS){
|
||||||
fbk = request.flags&TERMREQ_FBK;
|
fbk = request.flags&TERMREQ_FBK;
|
||||||
if( !( update || fbk ) ){
|
if( !( update || fbk ) ){
|
||||||
send(arg->socket, "\x00\0", sizeof(char)*2, 0);
|
send(arg->socket, "\x00\0", sizeof(char)*2, 0);
|
||||||
printf("{udp_cterm}{com}(%d) Invalid flag, passing\n", index);
|
printf("{udp_cterm}{com}(%d) Empty flag (might be a ping), passing\n", index);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -95,11 +95,18 @@ int multicastTerminal(struct middleware_arg* arg){
|
||||||
|
|
||||||
/* 3. On définit un timeout (si aucune connection) */
|
/* 3. On définit un timeout (si aucune connection) */
|
||||||
/* 3.1. Si viewTerm -> default timeout (4sec) */
|
/* 3.1. Si viewTerm -> default timeout (4sec) */
|
||||||
if( strcmp(arg->entity, "udp_vterm") == 0 )
|
if( strcmp(arg->entity, "udp_vterm") == 0 ){
|
||||||
setTimeout(*arg->comSock, SOCK_TIMEOUT, TIMEOUT_RECV|TIMEOUT_SEND);
|
if( setTimeout(*arg->comSock, SOCK_TIMEOUT, TIMEOUT_RECV|TIMEOUT_SEND) < 0 ){
|
||||||
|
if( DEBUGMOD&SCK ) printf("{%s} Cannot set RECV not SEND timeout\n", arg->entity);
|
||||||
|
}else
|
||||||
|
if( DEBUGMOD&SCK ) printf("{%s} SEND/RECV timeout set to %d\n", arg->entity, SOCK_TIMEOUT);
|
||||||
/* 3.2. Si ctrlTerm -> 10sec timeout */
|
/* 3.2. Si ctrlTerm -> 10sec timeout */
|
||||||
else
|
}else
|
||||||
setTimeout(*arg->comSock, CTRL_TIMEOUT, TIMEOUT_RECV|TIMEOUT_SEND);
|
if( setTimeout(*arg->comSock, CTRL_TIMEOUT, TIMEOUT_RECV|TIMEOUT_SEND) < 0 ){
|
||||||
|
if( DEBUGMOD&SCK ) printf("{%s} Cannot set RECV not SEND timeout\n", arg->entity);
|
||||||
|
}else
|
||||||
|
if( DEBUGMOD&SCK ) printf("{%s} SEND/RECV timeout set to %d\n", arg->entity, CTRL_TIMEOUT);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue