Protection Engine for Cloud Services

 View Only

Seeing error Code - ERROR_SOCKET_COMMUNICATION intermittently

  • 1.  Seeing error Code - ERROR_SOCKET_COMMUNICATION intermittently

    Posted Sep 04, 2012 01:33 AM

    I am sending the byte contents of the same file for scan in a loop - 20 Iterations. Out of 20 iterations, couple of iterations are failing with an error code - ERROR_SOCKET_COMMUNICATION. Seeing this error code intermittently. 

    Seeing the below exception stack trace in the logs.  

    Unable to communicate with Symantec Scan Engine.
        at com.symantec.scanengine.api.RequestImpl.readResult1(Unknown Source)
        at com.symantec.scanengine.api.RequestImpl.finish(Unknown Source)
        at VirusScanTestMain.isContentClean(VirusScanTestMain.java:57)
        at VirusScanTestMain.main(VirusScanTestMain.java:34)
        
    Tried the approach suggested @ http://www.symantec.com/business/support/index?page=content&id=TECH132054 by increasing the readWriteTime and failRetryTime as seen below, but to no luck.

    ScanEngine scanEngine = ScanEngine.createScanEngine(scanEnginesForScanning, 4000, 2000);
        
    Any inputs on how this error code ( ERROR_SOCKET_COMMUNICATION )  can be handled ? Should I go for a retry logic if we are getting this error code or is there any configurations that can be tweaked ?
        
    The Symantec thread configurations parmeters have default values.

    Max Thread Size or Thread Pool Size : 128
    Waiting Threads :  16
    Threshold for queued requests : 100