Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 349293

Summary: Server: exceptions on client disconnect
Product: z_Archived Reporter: Bruno Koeferli <bruno.koeferli>
Component: ScoutAssignee: Project Inbox <scout.core-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ivan.motsch, zimmermann
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:
Attachments:
Description Flags
exceptions on client disconnect (it seems to me that the second exception is a subsequent fault) none

Description Bruno Koeferli CLA 2011-06-14 04:58:43 EDT
Created attachment 197943 [details]
exceptions on client disconnect (it seems to me that the second exception is a subsequent fault)

Build Identifier: 3.7.0.201106071621, Build id: 20110607-1621

Client disconnects causes some exceptions in "ServiceTunnelServlet.doPost" (see attachment). The comments in the catch-block state that these exceptions should be ignored, but they don't.

Reproducible: Always

Steps to Reproduce:
1. Browse a LookupCall-SmartField (a longer taking call suits best)
2. Click the SmartField-DropDown away (which closes the connection)
3. VoilĂ , you can find the exceptions in the server log
Comment 1 Ivan Motsch CLA 2011-06-15 12:35:13 EDT
      //ignore disconnect errors
      // we don't want to throw an exception, if the client closed the connection
      Throwable cause = t;
      while (cause != null) {
        if (cause instanceof SocketException) {
          return;
        }
        else if (cause.getClass().getSimpleName().equalsIgnoreCase("EofException")) {
          return;
        }
        else if (cause instanceof InterruptedIOException) {
          return;
        }
        // next
        cause = cause.getCause();
      }
Comment 2 Matthias Zimmermann CLA 2011-10-10 12:39:03 EDT
shipped with scout 3.7.1