Ticket #2985 defect closed fixed

Opened 5 years ago

Last modified 5 years ago

twisted.web.static.FileTransfer pointlessly uses threadable.synchronized

Reported by: exarkun Owned by:
Priority: high Milestone:
Component: web Keywords:
Cc: Branch: branches/unsynchronized-2985
Author: exarkun Launchpad Bug:

Description

FileTransfer should not bother to pretend to provide a threadsafe API. Synchronizing resumeProducing doesn't actually make it threadsafe to call self.request.write from another thread.

Change History

1

Changed 5 years ago by exarkun

  • branch set to branches/unsynchronized-2985
  • author set to exarkun

(In [23910]) Branching to 'unsynchronized-2985'

2

Changed 5 years ago by exarkun

  • keywords review added
  • owner jknight deleted

Removed, and did some other minor cleanups.

3

Changed 5 years ago by therve

  • owner set to exarkun
  • keywords review removed

Looks cool. There is a bunch of other cleanups which would be nice to make:

  • remove string import
  • remove future import
  • remove trailing whitespaces

Nothing mandatory though, so merge when you want.

4

Changed 5 years ago by exarkun

  • status changed from new to closed
  • resolution set to fixed

(In [23946]) Merge unsynchronized-2985

Author: exarkun Reviewer: therve Fixes: #2985

Remove the code which synchronizes methods of FileTransfer. The methods aren't threadsafe even if they're guaranteed to be serialized.

Also make some minor cleanups to nearby code, removing trailing whitespace and no-longer needed imports.

5

Changed 2 years ago by <automation>

  • owner exarkun deleted
Note: See TracTickets for help on using tickets.