sshnet / sshnet/SSH.NET

Connection Attempt failed when trying to connect to MFT

Aperta
#739 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Lingua principale
C#
Stelle
4.4k
Fork
993
Merge medio
9g 21h
PR unite (30g)
1

Descrizione

Hi Team,

We are receiving two errors at irregular intervals from SFTP Baseclient.connect method while connecting to MFT server:

"System.Net.Sockets.SocketException:A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond"

":Renci.SshNet.Common.SshConnectionException:InnerException:System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at Renci.SshNet.Abstractions.SocketAbstraction.Read(Socket socket, Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout)
at Renci.SshNet.Session.TrySocketRead(Byte[] buffer, Int32 offset, Int32 length)
at Renci.SshNet.Session.ReceiveMessage()
at Renci.SshNet.Session.MessageListener():Message:An existing connection was forcibly closed by the remote host"

We have increased the Connection Timeout to 50 secs as well. using stable version: 2016.1.0

Please help to resolve the issues.

Thanks,
Haritha

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia dal percorso SFTP Baseclient.connect e segui gli stack frame SocketException e SshConnectionException segnalati attraverso il flusso di connessione. Riproduci il malfunzionamento intermittente verso il server MFT con il timeout di 50 secondi, quindi documenta una causa affidabile e verifica che la connessione non fallisca più in modo imprevisto.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
csharp
Ambito
networking
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.