Skip to content

Connection refused : SocketException  #79

@kpanchalwk

Description

@kpanchalwk

I'm consuming nClam by initializing ClamClient with localhost and default port as singleton via dependency injection. I'm facing "SocketException" exception when increases the no of requests to the service. Is there any limitation on no of parallel requests that ClamAV can handle or any thought on this?

System.Net.Sockets.SocketException (111): Connection refused
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
at System.Threading.Tasks.ValueTask.ValueTaskSourceAsTask.<>c.<.cctor>b__4_0(Object state)
--- End of stack trace from previous location ---
at System.Net.Sockets.TcpClient.CompleteConnectAsync(Task task)
at nClam.ClamClient.CreateConnection(TcpClient clam)
at nClam.ClamClient.ExecuteClamCommandAsync(String command, CancellationToken cancellationToken, Func`3 additionalCommand)
at nClam.ClamClient.SendAndScanFileAsync(Stream sourceStream, CancellationToken cancellationToken)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions