fixed socket read bug

This commit is contained in:
2024-05-15 11:39:00 +03:00
parent a0bb1890a7
commit 868e9daea6
4 changed files with 21 additions and 8 deletions

3
main.c
View File

@@ -91,6 +91,9 @@ int main(int argc, char **argv){
struct stat filestat;
if(0 == stat(GP->outfile, &filestat)) ERRX("File %s exists!", GP->outfile);
}
if(GP->anstmout > 0.){
if(!cc_setAnsTmout(GP->anstmout)) ERRX("Can't set answer timeout to %g", GP->anstmout);
}
if(GP->port){
if(GP->path){
WARNX("Options `port` and `path` can't be used together! Point `port` for TCP socket or `path` for UNIX.");