--- libaitrpc/src/srv.c 2024/02/26 11:00:37 1.30.2.3 +++ libaitrpc/src/srv.c 2024/02/26 13:30:59 1.30.2.6 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: srv.c,v 1.30.2.3 2024/02/26 11:00:37 misho Exp $ +* $Id: srv.c,v 1.30.2.6 2024/02/26 13:30:59 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -12,7 +12,7 @@ terms: All of the documentation and software included in the ELWIX and AITNET Releases is copyrighted by ELWIX - Sofia/Bulgaria -Copyright 2004 - 2022 +Copyright 2004 - 2024 by Michael Pounov . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -291,7 +291,7 @@ execCall(sched_task_t *task) if (TASK_VAL(task)) { /* without reply */ ait_freeVars(&c->cli_vars); - } else { + } else if (rpc->call_io & RPC_REQ) { /* reply */ rpc->call_argc = (u_char) array_Size(RPC_RETVARS(c)); } @@ -1383,8 +1383,7 @@ rpc_srv_initBLOBServer(rpc_srv_t * __restrict srv, u_s close(srv->srv_blob.server.cli_sock); AIT_FREE_VAL(&srv->srv_blob.dir); return -1; - } else - schedSignalDispatch(srv->srv_blob.root, 42); + } return 0; } @@ -1459,7 +1458,6 @@ rpc_srv_loopBLOBServer(rpc_srv_t * __restrict srv) schedPolling(srv->srv_blob.root, &ts, NULL); /* main rpc loop */ schedRun(srv->srv_blob.root, &srv->srv_blob.kill); - schedSignalDispatch(srv->srv_blob.root, 0); /* detach blobs */ TAILQ_FOREACH_SAFE(b, &srv->srv_blob.blobs, blob_node, tmp) {