cancel
Showing results for 
Search instead for 
Did you mean: 

hopen just hangs

sudhakar
New Contributor
I am connected to a q server session (v 3.4 on linux) and playing with .z.pg.
All of a sudden, that session was not accepting new connections. ie hopen just hangs without any error.
But I am still connected to that q session and communicating with it. We had to restart that session to make it accept new connections.

Anyone knows why this happened? I dont think my changing of .z.pg is the cause. Also, 20 is perhaps the max # of connections to that server.
If this were to happen again, what can an existing q session do to find out why it is not accepting new connections?
2 REPLIES 2

TerryLynch
New Contributor II
A few things could have caused the hopen to hang: 

1. you were running a query that caused the instance to be busy (hopen has to wait until your query finishes)

2. you were working in debug mode on the instance. The instance will not accept hopens or queries until you exit debug mode. 

3. You altered .z.pw or .z.po

As for how you could try to catch this issue in future - modify .z.pw and .z.po to capture/log the incoming hopen request. 

Terry


None of those things were true when it happened. 
I was actively communicating with that q server session until it was restarted.
If it happens again, I will modify .z.pw & .z.po as you suggested.  Thanks.