Hello all,
Currently I am developing a solution where our PACS system forward studies from branch to central hub through C-STORE.
The connection between the branch and C-STORE is an ordinary internet line with 4Mbps download and 1Mbps upload.
There is a weird issue occurs, sometimes the C-STORE operation freezes and no exception thrown.
I investigated the opened ports between the client and the server and both have the connection established with no activities.
Restarting the branch application and the C-STORE operation continues normally.
Am I missing something?
Below is a code describes my operation
void Send(ip,port,callingAet,calledAet)
{
var client = new DicomClient();
foreach (var sop in _sopList)
{
var request = new DicomCStoreRequest(sop);
request.UserState = sop;
request.OnResponseReceived = OnResponseReceived;
client.AddRequest(request);
}
client.Send(ip,port, false, callingAet,calledAet);
}
void OnResponseReceived(DicomCStoreRequest request, DicomCStoreResponse response)
{
var sop = request.UserState as Entities.WorkQueueSop;
if (sop != null)
{
if (response.Status.State == DicomState.Success)
{
//log success
}
else
{
//log failure
}
}
}