<feed xmlns='http://www.w3.org/2005/Atom'>
<title>unit.git/test, branch 1.17.0-1</title>
<subtitle>Universal Web Application Server</subtitle>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/'/>
<entry>
<title>Tests: added test with rescheduling requests.</title>
<updated>2020-04-14T02:02:16+00:00</updated>
<author>
<name>Andrei Zeliankou</name>
<email>zelenkov@nginx.com</email>
</author>
<published>2020-04-14T02:02:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=3c58a4bfc11d2d73fc72d1dbaeda4494d00508b8'/>
<id>3c58a4bfc11d2d73fc72d1dbaeda4494d00508b8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Tests: minor fixes and style.</title>
<updated>2020-04-14T01:35:04+00:00</updated>
<author>
<name>Andrei Zeliankou</name>
<email>zelenkov@nginx.com</email>
</author>
<published>2020-04-14T01:35:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=0bfa09dfa0ec6a1474ba30d0e1f8aea832fbc1fc'/>
<id>0bfa09dfa0ec6a1474ba30d0e1f8aea832fbc1fc</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Controller: improved handling of unix domain control socket.</title>
<updated>2020-04-08T12:15:24+00:00</updated>
<author>
<name>Valentin Bartenev</name>
<email>vbart@nginx.com</email>
</author>
<published>2020-04-08T12:15:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=c7f5c1c6641838006088524c2122eae8f9c30431'/>
<id>c7f5c1c6641838006088524c2122eae8f9c30431</id>
<content type='text'>
One of the ways to detect Unit's startup and subsequent readiness to accept
commands relies on waiting for the control socket file to be created.
Earlier, it was unreliable due to a race condition between the client's
connect() and the daemon's listen() calls after the socket's bind() call.

Now, unix domain listening sockets are created with a nxt_listen_socket_create()
call as follows:

   s = socket();
   unlink("path/to/socket.tmp")
   bind(s, "path/to/socket.tmp");
   listen(s);
   rename("path/to/socket.tmp", "path/to/socket");

This eliminates a time-lapse when the socket file is already created but nobody
is listening on it yet, which therefore prevents the condition described above.

Also, it allows reliably detecting whether the socket is being used or simply
wasn't cleaned after the daemon stopped abruptly.  A successful connection to
the socket file means the daemon has been started; otherwise, the file can be
overwritten.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
One of the ways to detect Unit's startup and subsequent readiness to accept
commands relies on waiting for the control socket file to be created.
Earlier, it was unreliable due to a race condition between the client's
connect() and the daemon's listen() calls after the socket's bind() call.

Now, unix domain listening sockets are created with a nxt_listen_socket_create()
call as follows:

   s = socket();
   unlink("path/to/socket.tmp")
   bind(s, "path/to/socket.tmp");
   listen(s);
   rename("path/to/socket.tmp", "path/to/socket");

This eliminates a time-lapse when the socket file is already created but nobody
is listening on it yet, which therefore prevents the condition described above.

Also, it allows reliably detecting whether the socket is being used or simply
wasn't cleaned after the daemon stopped abruptly.  A successful connection to
the socket file means the daemon has been started; otherwise, the file can be
overwritten.
</pre>
</div>
</content>
</entry>
<entry>
<title>Tests: use "return" action in upstream tests.</title>
<updated>2020-04-03T00:49:18+00:00</updated>
<author>
<name>Andrei Zeliankou</name>
<email>zelenkov@nginx.com</email>
</author>
<published>2020-04-03T00:49:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=a49023229ec0a404665a711fbf35f6b3bf715825'/>
<id>a49023229ec0a404665a711fbf35f6b3bf715825</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Tests: added notification on "read_timeout" expiration.</title>
<updated>2020-04-03T00:46:59+00:00</updated>
<author>
<name>Andrei Zeliankou</name>
<email>zelenkov@nginx.com</email>
</author>
<published>2020-04-03T00:46:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=d7aa514d6a586115f0b05d5d6465787da1fa9b6c'/>
<id>d7aa514d6a586115f0b05d5d6465787da1fa9b6c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Tests: minor fixes.</title>
<updated>2020-04-03T00:03:26+00:00</updated>
<author>
<name>Andrei Zeliankou</name>
<email>zelenkov@nginx.com</email>
</author>
<published>2020-04-03T00:03:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=2bb8b3d88a191d96c6693007ad79ae808f872941'/>
<id>2bb8b3d88a191d96c6693007ad79ae808f872941</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Tests: added tests for rational numbers in upstream server weight.</title>
<updated>2020-03-30T17:44:50+00:00</updated>
<author>
<name>Andrei Zeliankou</name>
<email>zelenkov@nginx.com</email>
</author>
<published>2020-03-30T17:44:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=5954839773a5c2ab5391ea2d99062de23581eee6'/>
<id>5954839773a5c2ab5391ea2d99062de23581eee6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixing application process infinite loop.</title>
<updated>2020-03-30T11:18:51+00:00</updated>
<author>
<name>Max Romanov</name>
<email>max.romanov@nginx.com</email>
</author>
<published>2020-03-30T11:18:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=0935630cba069d6619e967404bb6c7c2a93fbe7e'/>
<id>0935630cba069d6619e967404bb6c7c2a93fbe7e</id>
<content type='text'>
Main process exiting before app process init may have caused hanging.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Main process exiting before app process init may have caused hanging.
</pre>
</div>
</content>
</entry>
<entry>
<title>Handling change file message in libunit.</title>
<updated>2020-03-30T11:18:41+00:00</updated>
<author>
<name>Max Romanov</name>
<email>max.romanov@nginx.com</email>
</author>
<published>2020-03-30T11:18:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=ab7b42a072e741b226749c416440f89fcaff3d2c'/>
<id>ab7b42a072e741b226749c416440f89fcaff3d2c</id>
<content type='text'>
This is required for proper log file rotation action.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is required for proper log file rotation action.
</pre>
</div>
</content>
</entry>
<entry>
<title>Tests: added tests for "location" option.</title>
<updated>2020-03-27T17:29:45+00:00</updated>
<author>
<name>Andrei Zeliankou</name>
<email>zelenkov@nginx.com</email>
</author>
<published>2020-03-27T17:29:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=f94e31b294d69df40b59970ef4c721324cd3596e'/>
<id>f94e31b294d69df40b59970ef4c721324cd3596e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
