... | ... |
@@ -176,6 +176,7 @@ FIFO_MODE fifo_mode |
176 | 176 |
FIFO_DB_URL fifo_db_url |
177 | 177 |
UNIX_SOCK unix_sock |
178 | 178 |
UNIX_SOCK_CHILDREN unix_sock_children |
179 |
+UNIX_TX_TIMEOUT unix_tx_timeout |
|
179 | 180 |
AVP_DB_URL avp_db_url |
180 | 181 |
SERVER_SIGNATURE server_signature |
181 | 182 |
REPLY_TO_VIA reply_to_via |
... | ... |
@@ -370,6 +371,7 @@ EAT_ABLE [\ \t\b\r] |
370 | 371 |
<INITIAL>{FIFO_MODE} { count(); yylval.strval=yytext; return FIFO_MODE; } |
371 | 372 |
<INITIAL>{UNIX_SOCK} { count(); yylval.strval=yytext; return UNIX_SOCK; } |
372 | 373 |
<INITIAL>{UNIX_SOCK_CHILDREN} { count(); yylval.strval=yytext; return UNIX_SOCK_CHILDREN; } |
374 |
+<INITIAL>{UNIX_TX_TIMEOUT} { count(); yylval.strval=yytext; return UNIX_TX_TIMEOUT; } |
|
373 | 375 |
<INITIAL>{AVP_DB_URL} { count(); yylval.strval=yytext; return AVP_DB_URL; } |
374 | 376 |
<INITIAL>{SERVER_SIGNATURE} { count(); yylval.strval=yytext; return SERVER_SIGNATURE; } |
375 | 377 |
<INITIAL>{REPLY_TO_VIA} { count(); yylval.strval=yytext; return REPLY_TO_VIA; } |
... | ... |
@@ -201,6 +201,7 @@ static struct id_list* mk_listen_id(char*, int, int); |
201 | 201 |
%token FIFO_DB_URL |
202 | 202 |
%token UNIX_SOCK |
203 | 203 |
%token UNIX_SOCK_CHILDREN |
204 |
+%token UNIX_TX_TIMEOUT |
|
204 | 205 |
%token AVP_DB_URL |
205 | 206 |
%token SERVER_SIGNATURE |
206 | 207 |
%token REPLY_TO_VIA |
... | ... |
@@ -414,6 +415,8 @@ assign_stm: DEBUG EQUAL NUMBER { debug=$3; } |
414 | 415 |
| UNIX_SOCK EQUAL error { yyerror("string value expected"); } |
415 | 416 |
| UNIX_SOCK_CHILDREN EQUAL NUMBER { unixsock_children=$3; } |
416 | 417 |
| UNIX_SOCK_CHILDREN EQUAL error { yyerror("int value expected\n"); } |
418 |
+ | UNIX_TX_TIMEOUT EQUAL NUMBER { unixsock_tx_timeout=$3; } |
|
419 |
+ | UNIX_TX_TIMEOUT EQUAL error { yyerror("int value expected\n"); } |
|
417 | 420 |
| AVP_DB_URL EQUAL STRING { avp_db_url=$3; } |
418 | 421 |
| AVP_DB_URL EQUAL error { yyerror("string value expected"); } |
419 | 422 |
| USER EQUAL STRING { user=$3; } |
... | ... |
@@ -110,6 +110,7 @@ extern char *fifo_db_url; /* db url used by db_fifo interface */ |
110 | 110 |
/* UNIX domain socket configuration */ |
111 | 111 |
extern char *unixsock_name; /* The name of the socket */ |
112 | 112 |
extern int unixsock_children; /* The number of listening children */ |
113 |
+extern int unixsock_tx_timeout; /* Timeout (in ms) used when sending data */ |
|
113 | 114 |
|
114 | 115 |
/* AVP configuration */ |
115 | 116 |
extern char *avp_db_url; /* db url used by user preferences (AVPs) */ |