MON$ATTACHMENTS

53 views
Skip to first unread message

Tomasz Dubiel

unread,
Jun 17, 2024, 8:55:49 AM (12 days ago) Jun 17
to firebird-support
Connection state:
0 - idle

1 - active
Hello. When does a connection become idle? Is it after some time when the attachment perform no operations?
Best regards,
Tomasz.

Dimitry Sibiryakov

unread,
Jun 17, 2024, 8:59:03 AM (12 days ago) Jun 17
to firebird...@googlegroups.com
Tomasz Dubiel wrote 17.06.2024 14:55:
> When does a connection become idle? Is it after some time when the attachment
> perform no operations?

When it does not execute any request. So yes, immediately after it has
finished an operation.

--
WBR, SD.

Tomasz Dubiel

unread,
Jun 17, 2024, 9:02:17 AM (12 days ago) Jun 17
to firebird-support
So when an atachment has no active transaction, its idle. When it opens any transaction, it is active until it commits or rollbacks?
Best regards.

Dimitry Sibiryakov

unread,
Jun 17, 2024, 9:08:22 AM (12 days ago) Jun 17
to firebird...@googlegroups.com
Tomasz Dubiel wrote 17.06.2024 15:02:
> So when an atachment has no active transaction, its idle. When it opens any
> transaction, it is active until it commits or rollbacks?

No, it is not about transactions but requests.
Take it this way: attachment is busy while it executes any API call. As soon
as control is returned to the application - attachment is idle. (This is not
entirely true but this approach is close enough.)

--
WBR, SD.

Tomasz Dubiel

unread,
Jun 17, 2024, 9:12:33 AM (12 days ago) Jun 17
to firebird-support
OK, thanks.
Reply all
Reply to author
Forward
0 new messages