diff options
author | Veerapuram Varadhan <vvaradan@src.gnome.org> | 2006-02-24 20:13:17 +0000 |
---|---|---|
committer | Veerapuram Varadhan <vvaradan@src.gnome.org> | 2006-02-24 20:13:17 +0000 |
commit | 666d532354a71aa69ea84b5e76f0839bd59e900f (patch) | |
tree | 3d6fd067f445e65fa9691543445cbf791d66d277 /libsoup/soup-socket.h | |
parent | cfd002602aa14af24098198b21d8407549da2e1d (diff) | |
download | libsoup-666d532354a71aa69ea84b5e76f0839bd59e900f.tar.gz |
add a "timeout" property, which gets passed from server to socket, and
* libsoup/soup-connection.c:
* libsoup/soup-session.c:
* libsoup/soup-socket.c: add a "timeout" property,
which gets passed from server to socket, and session to connection
to socket, allowing blocking non-responsive sync connections to
return. Combination of "EAGAIN" && "Blocking" connection is treated
as error and the connection will be terminated and the control
is returned to the caller immediately.
Diffstat (limited to 'libsoup/soup-socket.h')
-rw-r--r-- | libsoup/soup-socket.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libsoup/soup-socket.h b/libsoup/soup-socket.h index 0f95dc6e..72766ff5 100644 --- a/libsoup/soup-socket.h +++ b/libsoup/soup-socket.h @@ -39,6 +39,7 @@ typedef struct { #define SOUP_SOCKET_IS_SERVER "is-server" #define SOUP_SOCKET_SSL_CREDENTIALS "ssl-creds" #define SOUP_SOCKET_ASYNC_CONTEXT "async-context" +#define SOUP_SOCKET_TIMEOUT "timeout" /** * SoupSocketCallback: |