mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-14 17:45:04 +00:00
Return 110 "Response Is Stale" to stale actors.
This commit is contained in:
parent
5803b928b5
commit
51dc99a86d
1 changed files with 2 additions and 1 deletions
3
data.c
3
data.c
|
@ -686,13 +686,14 @@ int actor_get(snac *snac, char *actor, d_char **data)
|
|||
|
||||
if (t + max_time < (float) time(NULL)) {
|
||||
/* actor data exists but also stinks */
|
||||
status = 202;
|
||||
|
||||
if ((f = fopen(fn, "a")) != NULL) {
|
||||
/* write a blank at the end to 'touch' the file */
|
||||
fwrite(" ", 1, 1, f);
|
||||
fclose(f);
|
||||
}
|
||||
|
||||
status = 110; /* "Response Is Stale" */
|
||||
}
|
||||
else {
|
||||
/* it's still valid */
|
||||
|
|
Loading…
Reference in a new issue