Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 349293 - Server: exceptions on client disconnect
Summary: Server: exceptions on client disconnect
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Scout (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-14 04:58 EDT by Bruno Koeferli CLA
Modified: 2021-08-19 11:13 EDT (History)
2 users (show)

See Also:


Attachments
exceptions on client disconnect (it seems to me that the second exception is a subsequent fault) (9.70 KB, text/plain)
2011-06-14 04:58 EDT, Bruno Koeferli CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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