duplicate connection error


 
Thread Tools Search this Thread
Special Forums IP Networking duplicate connection error
# 1  
Old 07-25-2009
duplicate connection error

Hello All,
I have one multithreaded server program.Due to fluctuating network, my client is getting disconnected, and after some time i received the new connection from same client, which gets treated as duplicate connection for my server. I have kept my tcp keep alive timer is 10 sec.

Can some one guide me, how can i handle this case? What concept i should use from socket programming for it? I tried shutdown and then close for closing the socket, unfortunately that didn't work.



Thanks,
Mustus
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

weblogic connection timeout error

i am facing an issue that the server give a connection timeout after 60 sec for any request more than that number . i tried to increase the TCP INTERVAL TIMEOUT from the default 60000 ms to more higher number. the server seems to work fine and didn't give me the massage of the timeout but the... (0 Replies)
Discussion started by: core99
0 Replies

2. Shell Programming and Scripting

Find duplicate based on 'n' fields and mark the duplicate as 'D'

Hi, In a file, I have to mark duplicate records as 'D' and the latest record alone as 'C'. In the below file, I have to identify if duplicate records are there or not based on Man_ID, Man_DT, Ship_ID and I have to mark the record with latest Ship_DT as "C" and other as "D" (I have to create... (7 Replies)
Discussion started by: machomaddy
7 Replies

3. Shell Programming and Scripting

Perl Oracle connection error

I've a Centralized Server which can connect to all Oracle Databases. When I was trying the below code it doesn't work, But tnsping was working fine. #!D:/perl5/bin/perl.exe use DBI; my $dbh = DBI->connect('dbi:Oracle:QBDIWCE', 'IDUSER', 'SECRET123#' ) || die( $DBI::errstr . "\n" ) ; ... (1 Reply)
Discussion started by: ilugopal
1 Replies

4. Shell Programming and Scripting

Connection error.

Hi All. I have a script, in which its throwing me error like /data/ds/dpr_ebicm_uat//etl/cm3_0/entities/BBME/parameters/cm_file_util.plg: line 7: export: `exist.=SQL1024N A database connection does not exist. SQLSTATE=08003': not a valid identifier whereas i have already made a... (4 Replies)
Discussion started by: vee_789
4 Replies

5. UNIX for Dummies Questions & Answers

SFTP Connection error

Hi I when I trying to SFTP a file to a server I am getting this below error: Connecting to 3.12.911.100... ssh_askpass: exec(/usr/lib/ssh/ssh-askpass): No such file or directory Host key verification failed. Connection closed Can you please help me in debugging this error. ... (3 Replies)
Discussion started by: krishna87
3 Replies

6. UNIX for Dummies Questions & Answers

winscp error: Network error connection timed out

Hi all, I am trying to winscp to RHEL5 server and i am ending up with following error. Network error:connection timed out The system is up and running but not able to winscp. Tried SFTP,SCP and FTP protocols in winscp but none worked. I can ssh into this server from another server... (3 Replies)
Discussion started by: lramsb4u
3 Replies

7. Solaris

Solaris 10 ftp connection problem (connection refused, connection timed out)

Hi everyone, I am hoping anyone of you could help me in this weird problem we have in 1 of our Solaris 10 servers. Lately, we have been having some ftp problems in this server. Though it can ping any server within the network, it seems that it can only ftp to a select few. For most servers, the... (4 Replies)
Discussion started by: labdakos
4 Replies

8. Web Development

MySQL Replication Issues: Duplicate Key Error

Lately my attention has been focused on distributed MySQL database replication to other web servers. All was going well, but then I noticed the replication would stop and there were there "Duplicate Primary Key" errors in SHOW SLAVE STATUS; I started to trace these down and noticed that this... (2 Replies)
Discussion started by: Neo
2 Replies

9. UNIX for Advanced & Expert Users

ssh connection error

I am trying to get my CVS client to connect to the repository over ssh. ssh works - I can quite happily log on but when I use the client - which incidentally is eclipse 2.1.3 on Windows using plink/puTTY as an external connection method - I get the following error in /var/log/secure: error:... (2 Replies)
Discussion started by: Jdogg
2 Replies

10. UNIX for Dummies Questions & Answers

no shell connection closed error

Hi, I have created some users on my new enviroment on sun solaris in the aptempt to create a .profile which I did. I must have done something wrong because when I try to connect to one of this users it says:no shell, connection closed. The only thing I can think is that in my .profile I inserted... (2 Replies)
Discussion started by: giulianob
2 Replies
Login or Register to Ask a Question
CVSCONNECT(1)															     CVSCONNECT(1)

NAME
cvsconnect - CVS connection minimizer SYNOPSIS
cvsconnect cvsroot [command-to-run ...] DESCRIPTION
CVSconnect enables you to do multiple CVS operations on single network connection. CVSconnect sets up special environment using $CVSRSH/$CVSROOT for the command line CVS client. In the environment, the command line CVS client reuses a network connection. CVSconnect is especially designed to use with CVSsuck. And CVSconnect (or similar) will be integrated to a future version of CVSsuck. However, it is planned that CVSsuck directly connects to a cvs server without cvs command. EXAMPLES
cvsconnect $HOME/.cvsroot BUGS
o The global option -z for compression cannot be used. If you use SSH via ext method, you can use compression by SSH instead. o CVS client must be run at a time. Running two or more clients at a same time will make a trouble. (will be fixed in future release.) o Some static variables in a CVS server may confuse you. It's a CVS bug. Report it to CVS developer :-). o Command line CVS client must request `Root' first. Don't mind. There is no implementation which violates this assumption, however I know. At least, CVS-1.10 and CVS-1.11 should work. NOTES
o When CVS command is failed, CVSconnect automatically re-run the command with reconnected connection when CVS command is failed. Especially the failure is caused by a long running CVS-1.10 server. Since CVS-1.10 doesn't close some file descriptors, a long running CVS server will exceed a limit of file descriptors. o /bin/sh should be POSIX sh because this script uses ${parameter#pattern}, etc. If your /bin/sh is ancient Bourne shell, use ksh or bash. SEE ALSO
cvs(1), cvssuck(1). AUTHOR
This manpage is written by Piotr Roszatycki <dexter@debian.org> for Debian distribution and can be freely redistributed. Debian 2011-08-30 CVSCONNECT(1)