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-connection.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-connection.h')
-rw-r--r-- | libsoup/soup-connection.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libsoup/soup-connection.h b/libsoup/soup-connection.h index 5bfb6aa8..098b93a2 100644 --- a/libsoup/soup-connection.h +++ b/libsoup/soup-connection.h @@ -61,6 +61,7 @@ typedef void (*SoupConnectionCallback) (SoupConnection *conn, #define SOUP_CONNECTION_SSL_CREDENTIALS "ssl-creds" #define SOUP_CONNECTION_MESSAGE_FILTER "message-filter" #define SOUP_CONNECTION_ASYNC_CONTEXT "async-context" +#define SOUP_CONNECTION_TIMEOUT "timeout" SoupConnection *soup_connection_new (const char *propname1, ...) G_GNUC_NULL_TERMINATED; |