<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cherrypy-git.git/cherrypy/process, branch main</title>
<subtitle>github.com: cherrypy/cherrypy.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cherrypy-git.git/'/>
<entry>
<title>🎨 Adjust line length in code across the repo</title>
<updated>2023-01-05T04:18:34+00:00</updated>
<author>
<name>Sviatoslav Sydorenko</name>
<email>wk@sydorenko.org.ua</email>
</author>
<published>2023-01-05T03:32:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cherrypy-git.git/commit/?id=02ed51b88c5a6266de63afcbd1e899931f952e84'/>
<id>02ed51b88c5a6266de63afcbd1e899931f952e84</id>
<content type='text'>
This patch makes it shorter to fit the 79 char limit.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch makes it shorter to fit the 79 char limit.
</pre>
</div>
</content>
</entry>
<entry>
<title>Use context managers to close files properly and fix tests on PyPy</title>
<updated>2022-02-01T17:35:12+00:00</updated>
<author>
<name>Michał Górny</name>
<email>mgorny@gentoo.org</email>
</author>
<published>2022-01-31T21:25:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cherrypy-git.git/commit/?id=7daf4855f58cd79e72196d3a5a0b0a860d782ee7'/>
<id>7daf4855f58cd79e72196d3a5a0b0a860d782ee7</id>
<content type='text'>
Use context managers (`with`) to ensure that all open files are closed
correctly.  This resolves resource leaks and test failures with PyPy3.7.

The code prior to this change used four approaches for closing files:

1. Using a context manager (`with` clause).

2. Using a try/finally clause.

3. Closing the file in the same scope (unreliable: file object can leak
   on exception).

4. Not closing open files at all.

The last point is a real problem for PyPy since it does not GC
unreachable objects as aggressively as CPython does.  While leaving
a function scope on CPython causes the file objects private to it to
be destroyed (and therefore closed), in PyPy they can stay dangling
for some time.  When combines with buffered writes, this means that
writes can still remain pending after returning from function.

Using a context manager is a simple, consistent way to ensure that
the file object is closed once it is no longer needed.  In turn, this
guarantees that all pending writes will be performed upon function
return and the code won't be hiting race conditions between writing
a file and reading it afterwards.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use context managers (`with`) to ensure that all open files are closed
correctly.  This resolves resource leaks and test failures with PyPy3.7.

The code prior to this change used four approaches for closing files:

1. Using a context manager (`with` clause).

2. Using a try/finally clause.

3. Closing the file in the same scope (unreliable: file object can leak
   on exception).

4. Not closing open files at all.

The last point is a real problem for PyPy since it does not GC
unreachable objects as aggressively as CPython does.  While leaving
a function scope on CPython causes the file objects private to it to
be destroyed (and therefore closed), in PyPy they can stay dangling
for some time.  When combines with buffered writes, this means that
writes can still remain pending after returning from function.

Using a context manager is a simple, consistent way to ensure that
the file object is closed once it is no longer needed.  In turn, this
guarantees that all pending writes will be performed upon function
return and the code won't be hiting race conditions between writing
a file and reading it afterwards.
</pre>
</div>
</content>
</entry>
<entry>
<title>Don't use deprecated camelCase functions from threading module.</title>
<updated>2021-06-07T15:53:21+00:00</updated>
<author>
<name>Dominic Davis-Foster</name>
<email>dominic@davis-foster.co.uk</email>
</author>
<published>2021-06-07T15:53:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cherrypy-git.git/commit/?id=9e54994a178f688e3b1cb00bdd4658d1d7bce743'/>
<id>9e54994a178f688e3b1cb00bdd4658d1d7bce743</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #1769 from robinchow/master</title>
<updated>2019-03-28T21:09:37+00:00</updated>
<author>
<name>Sviatoslav Sydorenko</name>
<email>wk.cvs.github@sydorenko.org.ua</email>
</author>
<published>2019-03-28T21:09:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cherrypy-git.git/commit/?id=b648977bedcfc24dc5340ca5fb2ff4823126419e'/>
<id>b648977bedcfc24dc5340ca5fb2ff4823126419e</id>
<content type='text'>
Reduced log level for non-error events in win32.py</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reduced log level for non-error events in win32.py</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "publish should be called when the state is changed"</title>
<updated>2019-03-27T13:09:08+00:00</updated>
<author>
<name>Jason R. Coombs</name>
<email>jaraco@jaraco.com</email>
</author>
<published>2019-03-26T21:13:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cherrypy-git.git/commit/?id=46e7cec33e67f9c77cc5fdba1df8882119c581e2'/>
<id>46e7cec33e67f9c77cc5fdba1df8882119c581e2</id>
<content type='text'>
This reverts commit 20bc9dbf617c61b8c2b7e847d3b88caeabfd6528.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 20bc9dbf617c61b8c2b7e847d3b88caeabfd6528.
</pre>
</div>
</content>
</entry>
<entry>
<title>Reduced log level for non-error events in win32.py</title>
<updated>2019-02-14T17:50:24+00:00</updated>
<author>
<name>Robin Chow</name>
<email>robinc@robinchow.net</email>
</author>
<published>2019-02-14T17:50:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cherrypy-git.git/commit/?id=6df2d8b6128b4b2afe392edf00940bc971a2f4b9'/>
<id>6df2d8b6128b4b2afe392edf00940bc971a2f4b9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Correct the loglevel to INFO for sucessful case </title>
<updated>2019-01-03T10:01:21+00:00</updated>
<author>
<name>jvisu</name>
<email>46317144+jvisu@users.noreply.github.com</email>
</author>
<published>2019-01-03T09:43:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cherrypy-git.git/commit/?id=e10b984e532bb882a00d3f353e775621019606b6'/>
<id>e10b984e532bb882a00d3f353e775621019606b6</id>
<content type='text'>
This fix is done to correct the loglevel. The loglevel is set to ERROR for successful case also. Updated to INFO level.
For more details check url https://github.com/cherrypy/cherrypy/issues/1762</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This fix is done to correct the loglevel. The loglevel is set to ERROR for successful case also. Updated to INFO level.
For more details check url https://github.com/cherrypy/cherrypy/issues/1762</pre>
</div>
</content>
</entry>
<entry>
<title>Use always_iterable in Bus.wait</title>
<updated>2018-12-09T16:04:40+00:00</updated>
<author>
<name>Jason R. Coombs</name>
<email>jaraco@jaraco.com</email>
</author>
<published>2018-12-09T16:04:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cherrypy-git.git/commit/?id=65305d812b5a2db0535d3272bb62399b19377f48'/>
<id>65305d812b5a2db0535d3272bb62399b19377f48</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>publish should be called when the state is changed</title>
<updated>2018-11-21T23:32:51+00:00</updated>
<author>
<name>Ian Otto</name>
<email>ianotto24@gmail.com</email>
</author>
<published>2018-11-21T23:32:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cherrypy-git.git/commit/?id=20bc9dbf617c61b8c2b7e847d3b88caeabfd6528'/>
<id>20bc9dbf617c61b8c2b7e847d3b88caeabfd6528</id>
<content type='text'>
publish should not be called during every wait cycle, only after the wait has found the correct state</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
publish should not be called during every wait cycle, only after the wait has found the correct state</pre>
</div>
</content>
</entry>
<entry>
<title>Fix incorrect copying of module names @ autoreload</title>
<updated>2018-09-30T11:44:29+00:00</updated>
<author>
<name>Sviatoslav Sydorenko</name>
<email>wk@sydorenko.org.ua</email>
</author>
<published>2018-09-30T11:44:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cherrypy-git.git/commit/?id=e77f0830754b1eb86ee53d82d10e2c76fe31cae6'/>
<id>e77f0830754b1eb86ee53d82d10e2c76fe31cae6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
