<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/server.c, branch 1.2.2</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.2.2</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.2.2'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2020-02-20T17:36:09Z</updated>
<entry>
<title>slave: prefix argv[0] with a '-' when spawning a login-shell</title>
<updated>2020-02-20T17:36:09Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-20T17:36:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b5efe984bbfec151b70d3450f4f18243313de497'/>
<id>urn:sha1:b5efe984bbfec151b70d3450f4f18243313de497</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Revert "server: use edge-triggered FDM handler for the client connections"</title>
<updated>2020-01-10T18:49:26Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-10T18:49:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=ed8d7f4bae3c2601e6bb997142f26d30f7b4a1ff'/>
<id>urn:sha1:ed8d7f4bae3c2601e6bb997142f26d30f7b4a1ff</id>
<content type='text'>
This reverts commit 9141b8a6573f973f97aa1615a8cc0c488cfd77e7.
</content>
</entry>
<entry>
<title>server: use edge-triggered FDM handler for the client connections</title>
<updated>2020-01-10T18:30:03Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-10T18:30:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=9141b8a6573f973f97aa1615a8cc0c488cfd77e7'/>
<id>urn:sha1:9141b8a6573f973f97aa1615a8cc0c488cfd77e7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>server: be more resilient against bad behaving clients</title>
<updated>2020-01-10T18:27:17Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-10T18:27:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=629a625422615ca38732452b2a54fd59882789d4'/>
<id>urn:sha1:629a625422615ca38732452b2a54fd59882789d4</id>
<content type='text'>
Make both the server listening socket and the connecting client
sockets non-blocking.

Then, when reading the initial length of the setup packet, handle read
errors from partial reads separately.

Assume the client writes all four bytes of the 'length' field at once,
and bail out if we are unable to read those 4 bytes.

Limit the maximum setup packet size to 128K. This is to prevent
clients from pretending the setup packet is insanely large, causing us
to fail to malloc.
</content>
</entry>
<entry>
<title>server: verify CWD string length matches the indicated length</title>
<updated>2019-12-21T19:05:14Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-21T19:05:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=c91ef4c512171ba849ada2353c227d273b723806'/>
<id>urn:sha1:c91ef4c512171ba849ada2353c227d273b723806</id>
<content type='text'>
</content>
</entry>
<entry>
<title>server: move forward the indicated number of TERM bytes</title>
<updated>2019-12-21T19:05:00Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-21T19:05:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=cd382a467ce872f3413304d8ecc6f050cfe8a4cf'/>
<id>urn:sha1:cd382a467ce872f3413304d8ecc6f050cfe8a4cf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>server: bug: move forward 2 bytes, not whatever the client sent</title>
<updated>2019-12-21T19:04:40Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-21T19:04:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=2a58fc27b7935439d35c06e03b7da3f8cdc25d48'/>
<id>urn:sha1:2a58fc27b7935439d35c06e03b7da3f8cdc25d48</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term: term_init: add 'cwd' argument</title>
<updated>2019-12-21T18:57:28Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-21T18:57:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=39146fac5cb7db4d0b68ba685722ca4713ddf722'/>
<id>urn:sha1:39146fac5cb7db4d0b68ba685722ca4713ddf722</id>
<content type='text'>
This is used when spawning the slave, to set its current working
directory just before we exec() the client.

In a regular foot instance, we set the cwd from getcwd().

In a foot server instance, each connecting client sends its cwd to the
server, and we use that.
</content>
</entry>
<entry>
<title>client/server: client sends its CWD to server</title>
<updated>2019-12-21T18:56:37Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-21T18:56:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=277735db65799aada06a5013fe747a48dfa6040b'/>
<id>urn:sha1:277735db65799aada06a5013fe747a48dfa6040b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term: term_spawn_new: always spawn foot/footclient from PATH</title>
<updated>2019-12-21T14:29:42Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-21T14:29:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a484a65fefc89bce0f3b77503ad35bf86f329680'/>
<id>urn:sha1:a484a65fefc89bce0f3b77503ad35bf86f329680</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term: term_spawn_new(): new function, spawns a new foot/footclient process</title>
<updated>2019-12-21T14:27:17Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-21T14:27:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=57de9feaa508fdd83c0d08c499232187c5f4b6c1'/>
<id>urn:sha1:57de9feaa508fdd83c0d08c499232187c5f4b6c1</id>
<content type='text'>
Bind ctrl+shift+return to it
</content>
</entry>
<entry>
<title>server: use socket-path from config</title>
<updated>2019-12-14T11:59:38Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-14T11:59:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=89ea61cf0ca033b1e3bf0b312c950b57d235de5c'/>
<id>urn:sha1:89ea61cf0ca033b1e3bf0b312c950b57d235de5c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>server: log socket packet</title>
<updated>2019-12-13T21:28:48Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-13T21:28:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=6ef65058cf0b5904a13960692e23ee92579814c4'/>
<id>urn:sha1:6ef65058cf0b5904a13960692e23ee92579814c4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add missing includes</title>
<updated>2019-12-01T18:22:45Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-01T18:22:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b5780e735e5b73ba5aa50d53af698e012aaf3f74'/>
<id>urn:sha1:b5780e735e5b73ba5aa50d53af698e012aaf3f74</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tllist: is now an external "library", so use &lt;&gt; includes</title>
<updated>2019-11-17T18:19:55Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-17T18:19:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=29cccadd1d9c372b3861bb0c285628bb374da2ba'/>
<id>urn:sha1:29cccadd1d9c372b3861bb0c285628bb374da2ba</id>
<content type='text'>
</content>
</entry>
<entry>
<title>server: disable debug output</title>
<updated>2019-11-05T13:36:58Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-05T13:36:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=54f750c494b1a8b42a4e27edf3c6e6c025127505'/>
<id>urn:sha1:54f750c494b1a8b42a4e27edf3c6e6c025127505</id>
<content type='text'>
</content>
</entry>
<entry>
<title>server/client: harden reading of initialization data, and make async</title>
<updated>2019-11-05T09:08:30Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-05T09:08:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=9abc5ca971b12c53f4d424d2bb3345f5a2b2007f'/>
<id>urn:sha1:9abc5ca971b12c53f4d424d2bb3345f5a2b2007f</id>
<content type='text'>
* Client terminal initialization data is now received
  asynchronously. To facilitate this, a couple of minor changes to the
  protocol was made:
    - The client now starts with sending a 4-byte unsigned integer
      with the *total* size of the initialization data (*not*
      including the size field itself.
    - Strings (TERM variable + argv) are now sent NULL-terminated

* The server allocates a single buffer, and fills it
  asynchronously. When full (as indicated by the initial 'total size'
  integer), we parse it (taking care not to read outside boundaries
  etc, and verifies the lengths (of the TERM variable and argv array)
  indicated by the client matches the actual lengths of the strings
  received.

* The server now ignores 'unexpected' data received from the client,
  after the terminal has been instantiated.
</content>
</entry>
<entry>
<title>server: workaround evil clients</title>
<updated>2019-11-05T08:31:47Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-05T08:31:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=5b3fe4492c78124949bcba8c215e65388c116602'/>
<id>urn:sha1:5b3fe4492c78124949bcba8c215e65388c116602</id>
<content type='text'>
If the clients attempt to send more data after we've instantiated the
terminal, just consume the data but ignore it.
</content>
</entry>
<entry>
<title>server: don't cache argc/argv in client context</title>
<updated>2019-11-05T08:31:14Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-05T08:31:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=5f77f0e999c56047c007010a649e1bf1f198a5d2'/>
<id>urn:sha1:5f77f0e999c56047c007010a649e1bf1f198a5d2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove unneeded include</title>
<updated>2019-11-03T12:07:19Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-03T12:07:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a8cb6c531ec33159e49aa5ee4d4eddf15e0227ec'/>
<id>urn:sha1:a8cb6c531ec33159e49aa5ee4d4eddf15e0227ec</id>
<content type='text'>
</content>
</entry>
</feed>
