Skip to content

Verify socket timeouts are respected

Michael Catanzaro requested to merge mcatanzaro/#18 into master

This adds a little test to verify that socket timeouts are respected if set. The test is based on test_connection_read_time_out_write(), so it's a little redundant, but this is a smaller test with much less going on, to more clearly show what it's trying to test.

Note that GSocket has no timeout by default. Same for sockets created with GSocketClient or GSocketListener. This isn't glib-networking's fault: it's just how the GLib APIs were designed. You need to set a timeout yourself if you want a timeout.

Closes #18 (closed)

Merge request reports