Ben Pfaff
e084f69017
ovsdb-server: Fix various memory leaks.
...
Some of these are serious leaks, in that they could leak some amount of
memory for every transaction processed by the database server.
Found with valgrind.
2010-02-02 15:21:09 -08:00
Ben Pfaff
108496163d
stream: Remove spurious #includes from header file.
2010-01-06 14:32:22 -08:00
Ben Pfaff
0b1fae1b73
ovsdb-server: Make database connections configurable from database itself.
...
Most importantly this adds a "managers" column to the vswitch database
that specifies where the ovsdb-server should connect.
2010-01-04 10:05:51 -08:00
Ben Pfaff
4931f33ad9
ovsdb-server: Factor out complication by using jsonrpc_session.
2010-01-04 09:47:01 -08:00
Ben Pfaff
57972e2ed7
ovsdb-server: Remove write-only struct member.
2009-12-17 13:48:09 -08:00
Ben Pfaff
6dea5eaf5c
ovsdb-server: Open --listen sockets before detaching.
...
This prevents a race condition in a command sequence that starts
ovsdb-server and then immediately connects to it with ovsdb-client.
2009-12-03 14:47:00 -08:00
Ben Pfaff
20bed8be25
jsonrpc: Make it easy to get a new JSON-RPC request's id.
2009-12-02 11:19:08 -08:00
Ben Pfaff
23f37a975e
ovsdb-server: Fix crash for invalid parameters to "monitor" request.
...
Thanks to Jeremy Stribling <strib@nicira.com > for reporting the problem.
2009-11-18 11:32:16 -08:00
Ben Pfaff
a8425c53c5
ovsdb: Monitor support.
2009-11-17 16:02:46 -08:00
Ben Pfaff
22f156fd06
ovsdb-server: Ignore replies to echo requests.
...
Until this commit, ovsdb-server would send off echo requests when the
connection became idle, but then it would terminate the connection when
the reply arrived, because it didn't recognize that it was a reply to its
own request (!).
2009-11-16 16:56:07 -08:00
Ben Pfaff
b93d3b6cb2
ovsdb: Refactor JSON-RPC database server implementation.
...
This refactoring breaks up jsonrpc-server.c in a more modular fashion, in
preparation for adding code for table monitors.
2009-11-16 10:55:29 -08:00
Ben Pfaff
6e79e2104c
ovsdb: Fix use of non-array for JSON-RPC parameters.
...
JSON-RPC requires that "params" be an array, but we weren't observing this
properly in the ovsdb specifications or code.
Thanks to Jeremy Stribling for pointing out the problem.
2009-11-16 09:20:40 -08:00
Ben Pfaff
6c2882f90c
ovsdb-server: Reconnect to clients specified on --connect.
2009-11-12 12:58:53 -08:00
Ben Pfaff
c2bffba3ee
ovsdb: Make JSON-RPC sessions other than the first work.
...
The number of open sessions wasn't being tracked properly, so closing a
JSON-RPC database session made it impossible to open any more.
2009-11-06 12:26:22 -08:00
Jeremy Stribling
dc268c788e
ovsdb: Fix bug in JSON-RPC server.
2009-11-06 10:55:37 -08:00
Ben Pfaff
f85f8ebbfa
Initial implementation of OVSDB.
2009-11-04 17:12:10 -08:00