Displaying 20 results from an estimated 1000 matches similar to: "Inconsistency in creating/opening/closing/destroying connections (PR#787)"
2000 Dec 20
0
Inconsistency in creating/opening/closing/destroying (PR#788)
On Wed, 20 Dec 2000 joehl@web.de wrote:
> I expected close() to be the opposite of open(), but
Why? It is not documented to be so, as far as I know.
> > # create a connection
> > con <- file("ex.data")
> > # open it
> > open(con, "w")
> > # close it
> > close(con)
> > # re-open it
> > open(con, "w")
> Error
2004 Dec 31
2
MGCP parameters
Sirs,
According to RFC 2705 (MGCP), these are the parameters that are used in the
transactions:
ReturnCode,
Connection-parameters
<-- DeleteConnection(CallId,
EndpointId,
ConnectionId,
[Encapsulated NotificationRequest,]
[Encapsulated
2000 Dec 20
0
closing the sink connection a) is possible and b) can't be undone (PR#782)
# Have no other connections opened yet
> showConnections()
class description mode text isopen can read can write
> sink("tempfile")
> close(getConnection(3))
> cat("send some output\n")
Error in stdout() : invalid connection
> sink()
Error in sink() : invalid connection
> cat("send some output\n")
Error in stdout() : invalid connection
>
2000 Dec 20
0
closing the sink connection a) is possible and b) can't be undone
# Have no other connections opened yet
> showConnections()
class description mode text isopen can read can write
> sink("tempfile")
> close(getConnection(3))
> cat("send some output\n")
Error in stdout() : invalid connection
> sink()
Error in sink() : invalid connection
> cat("send some output\n")
Error in stdout() : invalid connection
>
2005 Jan 09
1
Making a call using MGCP
Sirs,
I have a question about CreateConnection (CRCX) at MGCP.
For example, I have the phone number "5220107" and want to make a call for
it using MGCP through a media gateway. How can I proceed?
I know the command I must send to the media gateway should be like this:
CRCX <trans_id> <endpoint> MGCP 1.0
"C", "L", "M" and "X"
2010 Apr 05
1
dovecot-auth question
/export/rpoolbackup# dovecot -n
# 1.2.10: /local/etc/dovecot.conf
Warning: fd limit 256 is lower than what Dovecot can use under full load
(more than 768). Either grow the limit or change login_max_processes_count
and max_mail_processes settings # OS: SunOS 5.10 i86pc
protocols: imaps pop3s
ssl_cert_file: /local/ssl/certs/dovecot-cert.pem
ssl_key_file: /local/ssl/private/dovecot-key.pem
2006 Jan 11
0
Connection problem with a generic-runtime-built ActiveRecord::Base
Hi,
I''m trying to create a "runtime-generic" ActiveRecord
class, It means I don''t need to know the table or
database, before I create my program ruby-rails. So I
don''t need to predefine my database in environment.yml
file and pre-build classes inherited from
ActiveRecord::Base.
I write some code, it seems to work. However, I can''t
disconnect my
2016 Jan 05
2
doveadm search -A tries to create mailboxes
[0:root at elmo ~]$ rpm -q dovecot
dovecot-2.2.18-2.fc22.x86_64
I got a surprise today when I tried the doveadm search function from:
http://wiki2.dovecot.org/Plugins/Expire
[0:root at elmo ~]$ doveadm search -A mailbox Trash savedbefore 30d
doveadm(clamscan): Error: User initialization failed: Namespace '': mkdir(//Maildir) failed: Permission denied
(euid=982(clamscan)
2007 May 15
1
smbd hangs on solaris
In trying to get samba on solaris 10 to integrate in our AD, I installed the
version from blastwave. The problem I have now is that smbd seems to hang
when I start it with smbd -D.
The log output with -d 10 is probably too long to post, but here is the last
rows before the hang:
[2007/05/15 13:05:15, 5] lib/charcnv.c:(81)
Substituting charset '646' for LOCALE
[2007/05/15 13:05:15, 5]
2018 Jan 29
2
How to use /dev/net/tun from libvirt-lxc with user namespacing enabled
I have a container rootfs that I use to keep all work-related stuff. This
container was originally created by lxd (which creates all containers for
use with user namespacing), but now I decided to start using libvirt for
container management since I already use it for virtual machines, which
will spare me from dealing with multiple hypervisor technologies.
I managed to create a working domain xml
2017 Dec 14
2
cannot destroy connection (?) created by readLines in a tryCatch
Consider this code. This is R 3.4.2, but based on a quick look at the
NEWS, this has not been fixed.
tryCatch(
readLines(tempfile(), warn = FALSE)[1],
error = function(e) NA,
warning = function(w) NA
)
rm(list=ls(all.names = TRUE))
gc()
showConnections(all = TRUE)
If you run it, you'll get a connection you cannot close(), i.e. the
last showConnections() call prints:
?
2017 Dec 14
0
cannot destroy connection (?) created by readLines in a tryCatch
On Thu, Dec 14, 2017 at 12:17 PM, G?bor Cs?rdi <csardi.gabor at gmail.com>
wrote:
> On Thu, Dec 14, 2017 at 7:56 PM, Gabriel Becker <gmbecker at ucdavis.edu>
> wrote:
> > Gabor,
> >
> > You can grab the connection and destroy it via getConnection and then a
> > standard close call.
>
> Yeah, that's often a possible workaround, but since this
2017 Dec 14
0
cannot destroy connection (?) created by readLines in a tryCatch
Gabor,
You can grab the connection and destroy it via getConnection and then a
standard close call. (it actually lists that it is "closed" already, but
still in the set of existing connections. I can't speak to that difference).
> tryCatch(
+ readLines(tempfile(), warn = FALSE)[1],
+ error = function(e) NA,
+ warning = function(w) NA
+ )
[1] NA
>
2017 Dec 14
0
cannot destroy connection (?) created by readLines in a tryCatch
This has nothing to do with on.exit. It is an iteraction between where
the warning is signaled in 'file' and your _exiting_ warning handler.
This combination has the same issue,
tryCatch(file(tempfile(), "r"), warning = identity)
showConnections(all = TRUE)
as does
options(warn=2)
file(tempfile(), "r")
showConnections(all = TRUE)
I haven't looked at the
2017 Dec 15
1
cannot destroy connection (?) created by readLines in a tryCatch
Thanks for tracking this down. Yeah, I should use suppressWarnings(),
you are right.
Although, readLines() might throw another warning, e.g. for incomplete
last lines,
and you don't necessarily want to suppress that.
TBH I am not sure why that warning is given:
? con <- file(tempfile())
? open(con)
Error in open.connection(con) : cannot open the connection
In addition: Warning message:
In
2017 Dec 14
4
cannot destroy connection (?) created by readLines in a tryCatch
On Thu, Dec 14, 2017 at 7:56 PM, Gabriel Becker <gmbecker at ucdavis.edu> wrote:
> Gabor,
>
> You can grab the connection and destroy it via getConnection and then a
> standard close call.
Yeah, that's often a possible workaround, but since this connection
was opened by
readLines() internally, I don't necessarily know which one it is. E.g.
I might open multiple
2005 Sep 11
0
OpenH323-Channel Q.931-Problems with Gatekeeper
Dear Mailinglist-User
currently we`re working with an IP-PBX, based on Asterisk, with SIP, H.323
and ISDN-Capabilities.
SIP and ISDN works fine, but H.323 not.
In our first test, we started to connect Asterisk to an Cisco IOS-Gatekeeper
with the "chan_oh323" (version 0.6.5).
We successfully tested in/egress calls without any problems.
But when we started to connect our Asterisk
2007 Jul 03
1
bug in closing gzfile-opened connections?
Hi,
I am making multiple calls to gzfile() via read.table(), e.g.
> x <- read.table( gzfile( "xxx.gz" ) )
After i do this many times (I haven't counted, but probably between 50 and
100 times) I get the error message:
Error in open.connection(file, "r") : unable to open connection
In addition: Warning message:
cannot open compressed file 'xxx.gz'
however, I
2002 Jan 10
1
Closing binary file connections
Hi all,
I'm writing a function that read data from a binary file. I want to
close all opened connections, but it failed:
> showConnections()
description class mode text isopen can read can write
3 "daten/t5_all.mea" "file" "rb" "binary" "opened" "yes" "no"
4 "daten/t5_all.mea"
2009 May 16
2
newbie: closing unused connection + readline
Hello;
I am new to R and trying to read a line from socket connection at a
time but at the end of script I am getting "closing unused connection"
warning. I am not able to understand how to solve this. I want to read
a line from socket and then use read.table/scan on that line but it
looks like I am opening multiple connections instead of just one. I
think I am doing something wrong or