YottaDB / YDB

Mirrored from https://gitlab.com/YottaDB/DB/YDB

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WRITE /WAIT on a SOCKET device with no sockets spin loops (i.e. 100% CPU)

nars1 opened this issue · comments

Final Release Note

Description

Below is a test case that demonstrates the spin loop.

> cat soc.m
        set s="soc"
        open s:::"SOCKET"
        use s
        write /wait
        quit
> mumps -run soc

The above command never returns and htop shows 100% CPU utilization. Since the SOCKET device has no listening or connected sockets, the WRITE /WAIT should have returned immediately.

Draft Release Note

WRITE /WAIT on a SOCKET device with no sockets returns immediately. Previously it would spin loop (i.e. use the CPU at 100%) until the command timed out.