Edgewall Software

Changes between Initial Version and Version 3 of Ticket #2170


Ignore:
Timestamp:
Oct 4, 2005, 7:22:23 PM (19 years ago)
Author:
Christian Boos
Comment:

I just filled pysqlite:ticket:124, which contains some additional explanations about the issue: in short, we have to use 10 and not 10000 for the timeout value when using pysqlite2:

  • db.py

     
    254254                                 'directory it is located in.' \
    255255                                 % (getuser(), path)
    256256
    257         timeout = int(params.get('timeout', 10000))
    258257        if have_pysqlite == 2:
     258            timeout = int(params.get('timeout', 10)) # 10 seconds
    259259            # Convert unicode to UTF-8 bytestrings. This is case-sensitive, so
    260260            # we need two converters
    261261            sqlite.register_converter('text', str)
     
    264264            cnx = sqlite.connect(path, detect_types=sqlite.PARSE_DECLTYPES,
    265265                                 check_same_thread=False, timeout=timeout)
    266266        else:
     267            timeout = int(params.get('timeout', 10000)) # 10 seconds
    267268            cnx = sqlite.connect(path, timeout=timeout)
    268269        ConnectionWrapper.__init__(self, cnx)

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2170

    • Property Owner changed from Jonas Borgström to Christian Boos
    • Property Status newassigned
  • Ticket #2170 – Description

    initial v3  
    11This is somehow reproductible, though I got slightly different stack traces
     2
    23each time.
    34But it always bombs in `connection_commit`, though.