So many connections remain in TIME_WAIT state while configuring a FTP producer route with tempfilename property in FTP producer.
I am using *Producertemplate.sendBodyAndHeader(producerURI, Exchange.FILE_NAME, fileName)* to write file to destination. *Producer URI* : ftp://<USER@MACHINE_ADDRESS>//?password=RAW(PASSWORD)&binary=true&*passiveMode=false*&delete=true&pollStrategy=#ConsumerPollStrategy&*disconnect=false*&*tempFileName=/temp/hello.tmp*&initialDelay=10&throwExceptionOnConnectFailed=true&reconnectDelay=10&maximumReconnectAttempts=0&maxMessagesPerPoll=100&readLock=changed&readLockCheckInterval=500&readLockMinLength=1&sendEmptyMessageWhenIdle=true *fileName*: "file.tmp". We are writing ~ 2000 files . First files are written to temp directory then moved to destination. Connections opened for tempfiles are not re used to write temporary files and we run out of connection after writing 1000 files. Route resumes once connections are released. Is there a way we can reuse connection to write temporary files also. -- View this message in context: http://camel.465427.n5.nabble.com/Too-many-connection-in-TIME-WAIT-when-tempfilename-is-set-in-the-FTP-producer-URI-tp5768017.html Sent from the Camel - Users mailing list archive at Nabble.com.